fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -67,7 +67,7 @@ func CheckPermission(svcCtx *svc.ServiceContext) rest.Middleware {
|
||||
return
|
||||
}
|
||||
|
||||
rows, err := svcCtx.DB.QueryContext(r.Context(), `select id, path, method from api
|
||||
rows, err := svcCtx.EntClient.QueryContext(r.Context(), `select id, path, method from api
|
||||
left join permission_apis as pa on pa.api_id = api.id
|
||||
left join role_permissions as rp on rp.permission_id = pa.permission_id
|
||||
where rp.role_id = $1`, u.RoleId)
|
||||
|
||||
Reference in New Issue
Block a user