57 lines
1.1 KiB
Go
57 lines
1.1 KiB
Go
package organization
|
|
|
|
import (
|
|
"busniess-user-center/internal/models/base"
|
|
)
|
|
|
|
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 {
|
|
OrgId uint `json:"org_id"`
|
|
Ids []uint `json:"ids"`
|
|
}
|
|
|
|
type RemoveUsersReq struct {
|
|
OrgId uint `json:"org_id"`
|
|
Ids []uint `json:"ids"`
|
|
}
|
|
|
|
type SearchOrgUserReq struct {
|
|
OrgId uint `json:"org_id"`
|
|
base.Query
|
|
}
|