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