46 lines
1.0 KiB
Go
46 lines
1.0 KiB
Go
package organization
|
|
|
|
type CreateOrgReq struct {
|
|
Name string `json:"name" binding:"required"`
|
|
ParentId uint `json:"parent_id" binding:"required"`
|
|
Sort int `json:"sort" binding:"required"`
|
|
Leaders []string `json:"leaders"`
|
|
}
|
|
|
|
type DelOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
}
|
|
|
|
type GetOrgReq struct {
|
|
Id uint `from:"id" json:"id" binding:"required"`
|
|
}
|
|
|
|
type MoveOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
DestId uint `json:"dest_id" binding:"required"`
|
|
}
|
|
|
|
type SaveOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
Name string `json:"name" binding:"required"`
|
|
ParentId uint `json:"parent_id" binding:"required"`
|
|
Sort int `json:"sort" binding:"required"`
|
|
Leaders []string `json:"leaders"`
|
|
}
|
|
|
|
type DisableOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
}
|
|
|
|
type EnableOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
}
|
|
|
|
type AddUsersReq struct {
|
|
Ids []uint `json:"ids"`
|
|
}
|
|
|
|
type RemoveUsersReq struct {
|
|
Ids []uint `json:"ids"`
|
|
}
|