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
@@ -0,0 +1,31 @@
package agv
import (
"net/http"
"bj_power_mes/internal/logic/agv"
"bj_power_mes/internal/svc"
"bj_power_mes/internal/types"
"github.com/zeromicro/go-zero/rest/httpx"
)
// AgvRequestEntryHandler MOM业务: AGV对自动线进出请求接口 (AGV => 自动线, 免鉴权)
// 注意:MOM 要求裸格式 {id, Code, msg},不可用 go-zero 默认包装。
func AgvRequestEntryHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.AgvRequestEntryReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := agv.NewAgvRequestEntryLogic(r.Context(), svcCtx)
resp, err := l.AgvRequestEntry(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.WriteJson(w, http.StatusOK, resp)
}
}
}