做字典管理

This commit is contained in:
2026-09-28 23:16:26 +08:00
parent 7c75edcc61
commit c49e8d0d3f
59 changed files with 5005 additions and 4673 deletions
+15
View File
@@ -0,0 +1,15 @@
package backend
import "testing"
// TestRegisterDictRoutes 确认字典路由能完成注册且不与既有路由冲突。
// beego 在注册重复/歧义路由或非法方法名时会 panic,这里通过实际注册来兜住这类错误。
func TestRegisterDictRoutes(t *testing.T) {
defer func() {
if r := recover(); r != nil {
t.Fatalf("注册租户端字典路由失败: %v", r)
}
}()
RegisterDictRoutes()
}