liujiandao
2024-04-09 6dec2342316aecf4084c8f4efb43f33fbb72892f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package request
 
type GetDepartmentList struct {
    PageInfo
}
 
type AddDepartment struct {
    ParentId int    `gorm:"index;type:int;not null;comment:上级部门ID" json:"parentId"`      //上级部门ID 一级部门传0
    Number   string `gorm:"index;type:varchar(255);not null;comment:部门编号" json:"number"` //部门编号
    Name     string `gorm:"index;type:varchar(255);not null;comment:部门名称" json:"name"`   //部门名称
    Remark   string `gorm:"index;type:varchar(255);not null;comment:备注" json:"remark"`   //备注
}
 
type UpdateDepartment struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddDepartment
}