| | |
| | | package request |
| | | |
| | | import "silkserver/constvar" |
| | | |
| | | type GetWorkerList struct { |
| | | PageInfo |
| | | KeyWord string `json:"keyWord"` |
| | | Keyword string `json:"keyword"` |
| | | } |
| | | |
| | | type GetWorkTypeList struct { |
| | | PageInfo |
| | | KeyWord string `json:"keyWord"` |
| | | Keyword string `json:"keyword"` |
| | | } |
| | | |
| | | type GetSalaryPlanList struct { |
| | | PageInfo |
| | | KeyWord string `json:"keyWord"` |
| | | Keyword string `json:"keyword"` |
| | | } |
| | | |
| | | type SalaryType struct { |
| | | Type constvar.MiniDictType `json:"type"` //字典类型,薪资类型:8 |
| | | Values []SalaryTypeValue `json:"values"` |
| | | } |
| | | |
| | | type SalaryTypeValue struct { |
| | | Name string `json:"name"` //名称 |
| | | IsDefault bool `json:"isDefault"` //是否可编辑 |
| | | } |
| | | |
| | | type AddWorkPositionRequest struct { |
| | | StartDate string `gorm:"type:varchar(255);not null;default:'';comment:开始日期" validate:"required"` //开始日期 |
| | | EndDate string `gorm:"type:varchar(255);not null;default:'';comment:结束日期" validate:"required"` //结束日期 |
| | | Workshop string `gorm:"type:varchar(255);not null;comment:车间" json:"workshop" validate:"required"` //车间编号 |
| | | WorkshopName string `gorm:"type:varchar(255);not null;comment:车间" json:"workshopName" validate:"required"` //车间名称 |
| | | WorkshopGroup int `gorm:"type:int(11);not null;default:0;comment:车组" json:"workshopGroup" validate:"required"` //车组 |
| | | StartWorkerPosition int `json:"startWorkerPosition" gorm:"type:int(11);comment:开始车号" validate:"required"` //开始车号 |
| | | EndWorkerPosition int `json:"endWorkerPosition" gorm:"type:int(11);comment:结束车号" validate:"required"` //结束车号 |
| | | WorkerId string `gorm:"type:varchar(255);not null;default:'';comment:工人ID" json:"workerId" validate:"required"` //工人ID |
| | | } |
| | | |
| | | type UpdateWorkerPositionRequest struct { |
| | | Id uint `json:"id"` |
| | | AddWorkPositionRequest |
| | | } |
| | | |
| | | type GetWorkerPositionList struct { |
| | | PageInfo |
| | | Keyword string `json:"keyword"` |
| | | } |