feat(ik3cloud): 扩展Ik3cloud服务结构并优化员工接口
- 在Ik3cloud结构体中新增Contact和Factory字段 - 定义Entity结构体用于统一返回格式 - 定义Unique结构体用于批量操作参数 - 修改员工添加接口返回值为Entity结构体 - 修改员工禁用、启用和删除接口参数为Unique结构体
This commit is contained in:
@@ -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 // 部门负责人
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user