feat: 增加客户端采购员归属管理 (#54)

This commit is contained in:
chengma
2026-08-09 16:02:25 +08:00
parent 0181170457
commit e0c0dac7a0
17 changed files with 766 additions and 37 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ import (
"cmautobuy/admin/service"
)
// AdminRequired 叠加在已认证的 /users 路由上。采购员能使用业务页,但不能管理账号。
// AdminRequired 叠加在已认证路由上。采购员能使用业务页,但不能执行管理操作。
func AdminRequired() gin.HandlerFunc {
return func(c *gin.Context) {
user := currentUser(c)
@@ -23,7 +23,7 @@ func AdminRequired() gin.HandlerFunc {
c.Next()
return
}
fail(c, http.StatusForbidden, "只有管理员可以访问用户管理。当前账号仍可使用其他业务页面。")
fail(c, http.StatusForbidden, "只有管理员可以执行此管理操作。当前账号仍可使用其他业务页面。")
c.Abort()
}
}