wangpengfei
2023-08-09 30ecf91d875042d461457cdade7b55113a8ec4ab
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"`
}