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:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
@@ -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)