feat:多项功能优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user