fix
wangpengfei
2023-08-15 dd39909b3d8172856313ea7b2e19d1d7a039a582
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package request
 
type AddDepartment struct {
    Name string `json:"name" binding:"required"`
}
 
type UpdateDepartment struct {
    Id   int    `json:"id" binding:"required"`
    Name string `json:"name" binding:"required"`
}
 
type UpdateDepartmentList struct {
    Departments []*UpdateDepartment `json:"departments" binding:"required"`
}