yinbentan
2024-07-25 1bd58eb901da8ca32d15c121effa7e22cc89e1bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package request
 
import "silkserver/constvar"
 
type GetWorkerList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type GetWorkTypeList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type GetSalaryPlanList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type SalaryType struct {
    Type   constvar.MiniDictType `json:"type"` //字典类型,薪资类型:8
    Values []SalaryTypeValue     `json:"values"`
}
 
type SalaryTypeValue struct {
    Id        uint   `json:"id"`
    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"`
}