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)
@@ -1,19 +0,0 @@
package middleware
import (
"net/http"
"bj_power_mes/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
// WriteAudit 邂。逅錘蜿ー蜀呎桃菴懷ョ。隶。荳ュ髣エ莉カ縲?//
// 邊セ邂€迚?MES 荳榊菴ソ逕ィ莠倶サカ諤サ郤ソ謫堺ス懷ョ。隶。證らスョ荳コ遨コ謫堺ス懶シ磯€丈シ会シ
// 蜷守サュ螯る怙謫堺ス懈律蠢怜庄謾ケ荳コ逶エ謗・蜀吝コ薙€?func WriteAudit(svcCtx *svc.ServiceContext) rest.Middleware {
return func(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
next(w, r)
}
}
}