refactor: Gitea 式目录改组,移除本分支 SPA 与杂项产物

将 model/service/handler/middleware 迁至 models/services/routers/api/modules/auth,并删除 frontend、embed_static、scripts 及误入库缓存/二进制。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-29 03:54:56 +08:00
parent 1414c71dec
commit 9fe299a45f
449 changed files with 0 additions and 52779 deletions

14
services/mention_test.go Normal file
View File

@@ -0,0 +1,14 @@
package service
import (
"reflect"
"testing"
)
func TestExtractMentionNames(t *testing.T) {
got := ExtractMentionNames("hi @alice 和 @小明_x 以及 @bob-1")
want := []string{"alice", "小明_x", "bob-1"}
if !reflect.DeepEqual(got, want) {
t.Fatalf("got %#v, want %#v", got, want)
}
}