46 lines
966 B
Go
46 lines
966 B
Go
package organization
|
|
|
|
type CreateOrgReq struct {
|
|
Name string `json:"name" binding:"required"`
|
|
ParentId uint `json:"parent_id"`
|
|
Sort int `json:"sort"`
|
|
Leaders []string `json:"leaders"`
|
|
}
|
|
|
|
type DelOrgReq struct {
|
|
Id uint `json:"id" binding:"required"`
|
|
}
|
|
|
|
type GetOrgReq struct {
|
|
Id uint `form:"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" `
|
|
Sort int `json:"sort" `
|
|
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"`
|
|
}
|