28 lines
702 B
Go
28 lines
702 B
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"`
|
|
}
|
|
|
|
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"`
|
|
}
|