chore(department): 修改部门模块配置

- 更新部门模块的权限配置
- 调整部门数据结构定义
- 优化部门查询逻辑
- 修复部门名称长度限制问题
- 完善部门相关单元测试
- 更新部门模块文档说明
This commit is contained in:
2025-11-20 16:47:38 +08:00
parent 3ca0c9a28a
commit e2da0185b8

View File

@@ -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 // 部门负责人
}