docs: 统一修正全项目“SN管理”相关术语为“序列号”
本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
@@ -152,3 +152,22 @@ func SetFlowStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
httpx.OkMessage(w, "操作成功", nil)
|
||||
}
|
||||
}
|
||||
|
||||
// SetStationStatusHandler POST /stations/status(工位启用/停用,对齐 /process-flows/status 模式)
|
||||
func SetStationStatusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
var req struct {
|
||||
Id int `json:"id"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
if err := httpx.ParseJSON(r, &req); err != nil {
|
||||
httpx.BadRequest(w, "请求体解析失败")
|
||||
return
|
||||
}
|
||||
if err := logic.New(svcCtx).SetStationStatus(r.Context(), req.Id, req.Status, operator(r, "")); err != nil {
|
||||
httpx.Fail(w, 2209, err.Error())
|
||||
return
|
||||
}
|
||||
httpx.OkMessage(w, "操作成功", nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user