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"` }