zhangqian
2023-08-10 03b791e466c5db94b196c465fc2e5ac91a2d9890
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"`
}