diff --git a/oa/department.go b/oa/department.go index 4890e43..5eaf10e 100644 --- a/oa/department.go +++ b/oa/department.go @@ -12,6 +12,7 @@ type department struct { type DepartmentItem struct { Id int64 `json:"id"` Name string `json:"name"` + Code string `json:"code"` ParentId int64 `json:"parentId"` ManageStaffId int64 `json:"manageStaffId"` CreatedAt time.Time `json:"createdAt"` @@ -30,6 +31,7 @@ func (d *department) All(ctx context.Context) (reply []DepartmentItem, err error type ArgsDepartmentAdd struct { Name string // 部门名称 + Code string // 部门编号 ParentId int64 // 上级部门id ManageStaffId int64 // 部门负责人 }