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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user