zhangqian
2023-12-08 84fb8e390b83dc9482524c12d7af6c93405c3fc1
model/request/common.go
@@ -9,6 +9,21 @@
   ID uint `json:"id"` // 主键ID
}
type GetByUserId struct {
   UserId string `json:"userId"` // 用户ID
type SetCurrentDevice struct {
   CurrentDeviceID string `json:"currentDeviceID,omitempty"` //当前选定的生产设备
}
type DeviceConfig struct {
   NeedSetProcessParams bool `json:"needSetProcessParams,omitempty"` //是否需要设置工艺参数
}
type ReportWork struct {
   ProcedureId  uint   `json:"procedureId" binding:"required"`   //工序id
   ReportAmount int    `json:"reportAmount"  binding:"required"` //报工数量
   WorkerID     string `json:"workerID"  binding:"required"`     //报告者id
}
type ReportWorkList struct {
   PageInfo
   ProcedureId uint `json:"procedureId" binding:"required" form:"procedureId"` //工序id
}