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,22 @@
package system
import (
"net/http"
"bj_power_mes/internal/logic/system"
"bj_power_mes/internal/svc"
"github.com/zeromicro/go-zero/rest/httpx"
)
func GetSystemStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := system.NewGetSystemStatusLogic(r.Context(), svcCtx)
resp, err := l.GetSystemStatus()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}