feat:多项功能优化

This commit is contained in:
zhoujianjin
2026-09-18 18:54:54 +08:00
parent 672cd23329
commit 543655d441
48 changed files with 1289 additions and 447 deletions
@@ -112,6 +112,17 @@ func SaveStationHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
}
// DeleteStationHandler DELETE /stations/:id(删除工位:内置工位不允许删除)
func DeleteStationHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if err := logic.New(svcCtx).DeleteStation(r.Context(), pathId(r), operator(r, "")); err != nil {
httpx.Fail(w, 2208, err.Error())
return
}
httpx.OkMessage(w, "工位已删除", nil)
}
}
// SetFlowStatusHandler POST /process-flows/status(工艺流程启用/停用)
func SetFlowStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {