新增部门接口
This commit is contained in:
@@ -8,9 +8,8 @@ type DeptRequest struct {
|
||||
|
||||
// AddDept 新增部门
|
||||
type AddDept struct {
|
||||
ParentId string `json:"parent_id" form:"parent_id" validate:"required" label:"上级部门"` // 本表父级id
|
||||
DeptName string `json:"dept_name" form:"dept_name" validate:"required" label:"部门名称"`
|
||||
DeptStatus int `json:"dept_status" form:"dept_status" validate:"required,oneof=1 2" label:"部门状态"` // (1:正常 2:删除)
|
||||
ParentId string `json:"parent_id" form:"parent_id" validate:"required" label:"上级部门"` // 本表父级id
|
||||
DeptName string `json:"dept_name" form:"dept_name" validate:"required" label:"部门名称"`
|
||||
}
|
||||
|
||||
// DeleteDept 删除部门-批量
|
||||
@@ -20,7 +19,7 @@ type DeleteDept struct {
|
||||
|
||||
// PutDept 修改部门
|
||||
type PutDept struct {
|
||||
ParentId int64 `json:"parent_id" form:"parent_id" validate:"required" label:"上级部门"` // 本表父级id
|
||||
ParentId string `json:"parent_id" form:"parent_id" validate:"required" label:"上级部门"` // 本表父级id
|
||||
DeptName string `json:"dept_name" form:"dept_name" validate:"required" label:"部门名称"`
|
||||
DeptStatus int `json:"dept_status" form:"dept_status" validate:"required,oneof=1 2" label:"部门状态"` // (1:正常 2:删除)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user