liujiandao
2023-09-23 ea02a2a9a8219d44b103f0a31cf9fc81ff8495e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package request
 
type GetCompanyList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type AddCompany struct {
    Name string `json:"name" gorm:"index;type:varchar(255);not null;comment:公司名称"` //公司名称
}
 
type UpdateCompany struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddCompany
}