63 lines
1.3 KiB
Go
63 lines
1.3 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 `form:"org_id" json:"org_id"`
|
|
base.Query
|
|
}
|
|
|
|
type MoveOrgUserReq struct {
|
|
SourceOrgId uint `json:"source_org_id"`
|
|
DestOrgId uint `json:"dest_org_id"`
|
|
UserIds []uint `json:"user_ids"`
|
|
}
|