feat(ik3cloud): 扩展Ik3cloud服务结构并优化员工接口

- 在Ik3cloud结构体中新增Contact和Factory字段
- 定义Entity结构体用于统一返回格式
- 定义Unique结构体用于批量操作参数
- 修改员工添加接口返回值为Entity结构体
- 修改员工禁用、启用和删除接口参数为Unique结构体
This commit is contained in:
2025-11-20 16:47:38 +08:00
parent 3ca0c9a28a
commit a2abdd3b11
3 changed files with 22 additions and 8 deletions

View File

@@ -3,4 +3,16 @@ package ik3cloud
type Ik3cloud struct {
Department department // 部门
Staff staff // 员工
Contact contact // 联系人
Factory factory // 工厂
}
type Entity struct {
Id int64 `json:"Id"`
Number string `json:"Number"`
DIndex int `json:"DIndex"`
}
type Unique struct {
Numbers []string // 编码
Ids []int64 // id
}