增加组织架构

This commit is contained in:
2026-08-27 21:25:39 +08:00
parent 74ab6c4c6d
commit d6bba226d0
41 changed files with 6128 additions and 5218 deletions
+16
View File
@@ -0,0 +1,16 @@
package backend
import "testing"
// TestRegisterOrganizationRoutes 确认组织架构路由能为 erp 与 oa 两个前缀完成注册且不冲突。
// beego 在注册重复路由或非法方法名时会 panic,这里通过实际注册来兜住这类错误。
func TestRegisterOrganizationRoutes(t *testing.T) {
defer func() {
if r := recover(); r != nil {
t.Fatalf("注册组织架构路由失败: %v", r)
}
}()
registerOrganizationRoutes("erp")
registerOrganizationRoutes("oa")
}