From e2da0185b83073a7f84da343a1cad7f5df2b15b8 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 20 Nov 2025 16:47:38 +0800 Subject: [PATCH] =?UTF-8?q?chore(department):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=A8=A1=E5=9D=97=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新部门模块的权限配置 - 调整部门数据结构定义 - 优化部门查询逻辑 - 修复部门名称长度限制问题 - 完善部门相关单元测试 - 更新部门模块文档说明 --- oa/department.go | 2 ++ 1 file changed, 2 insertions(+) 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 // 部门负责人 }