zhangqian
2024-04-29 8b6e1e99dfbfe9c5324ba161cfbd742cd5dd5499
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package request
 
type AddMentorRequest struct {
    WorkerId string `gorm:"unique_index:worker_id_month;type:varchar(255);not null;default:'';comment:工人ID" json:"workerId"` //工人ID
    Month    string `gorm:"unique_index:worker_id_month;type:varchar(255);not null;default:'';comment:月份" json:"month"`      //月份
    Days     int    `gorm:"type:tinyint;not null;default:0;comment:天数" json:"days"`                                          //天数
}
 
type UpdateMentorRequest struct {
    ID       uint   `json:"id"`
    WorkerId string `gorm:"unique_index:worker_id_month;type:varchar(255);not null;default:'';comment:工人ID" json:"workerId"` //工人ID
    Month    string `gorm:"unique_index:worker_id_month;type:varchar(255);not null;default:'';comment:月份" json:"month"`      //月份
    Days     int    `gorm:"type:tinyint;not null;default:0;comment:天数" json:"days"`                                          //天数
}
 
type GetMentorList struct {
    PageInfo
    Keyword string `json:"keyword"`
}