更新oa代码

This commit is contained in:
2025-11-06 15:56:29 +08:00
parent 9c67793fc3
commit 6a9b5d413a
60 changed files with 6194 additions and 2757 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"strings"
"server/models"
"server/services"
"github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web/context"
@@ -68,7 +69,7 @@ func JWTAuthMiddleware() web.FilterFunc {
// 判断用户类型:检查userId是否在员工表中
// 如果userId在yz_tenant_employees表中存在,则为员工登录;否则为用户登录
userType := "user"
if models.IsEmployee(claims.UserID) {
if services.IsEmployee(claims.UserID) {
userType = "employee"
}
ctx.Input.SetData("userType", userType)