feat(ik3cloud): 新增客户、付款单和物料模块

- 新增客户模块,支持客户信息保存功能
- 新增付款单模块,支持付款单据保存功能
- 新增物料模块,支持物料信息保存功能
- 修改部门和员工模块接口,统一使用Save方法替代原有的Add和Edit方法
- 调整金蝶集成接口参数,简化调用方式
- 更新常量定义,增加客户、付款单和物料相关枚举值
This commit is contained in:
2025-12-03 13:49:31 +08:00
parent fa23a28fab
commit 908fa48a84
10 changed files with 149 additions and 55 deletions

View File

@@ -42,39 +42,25 @@ func (s *staff) List(ctx context.Context, args ArgsStaffList) (reply ReplyStaffL
return
}
type ArgsStaffAdd struct {
Name string // 姓名
Number string // 编码
Mobile any // 手机号
Tel string // 座机
Email string // 邮箱
type ArgsStaffSave struct {
StaffId int64 // 员工id
Name string // 姓名
Number string // 编码
Mobile any // 手机号
Tel string // 座机
Email string // 邮箱
}
// Add @TITLE 添加员工
func (s *staff) Add(ctx context.Context, args ArgsStaffAdd) (entity Entity, err error) {
// Save @TITLE 保存员工
func (s *staff) Save(ctx context.Context, args ArgsStaffSave) (entity Entity, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "Add", args, &entity)
err = xClient.Call(ctx, "Save", args, &entity)
return
}
type ArgsStaffEdit struct {
StaffId int64 // 员工id
ArgsStaffAdd
}
// Edit @TITLE 员工编辑
func (s *staff) Edit(ctx context.Context, args ArgsStaffEdit) (err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
var reply int
return xClient.Call(ctx, "Edit", args, &reply)
}
// Disable @TITLE 禁用员工
func (s *staff) Disable(ctx context.Context, args Unique) (err error) {
xClient, err := client.GetClient(s)