- 新增应付模块,支持应付列表和详情接口 - 添加应付单据的保存功能 - 实现与客户端的通信调用逻辑 - 定义应付相关的数据结构和参数类型 - 支持分页查询和搜索条件过滤
27 lines
529 B
Go
27 lines
529 B
Go
package ik3cloud
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.kumo.work/shama/service/client"
|
|
)
|
|
|
|
type payable struct {
|
|
}
|
|
type ArgsPayableSave struct {
|
|
PayableId int64 // 应付单id
|
|
Number string // 编码
|
|
CustomNumber string // 客户编码
|
|
FactoryNumber string // 工厂编码
|
|
}
|
|
|
|
// Save @TITLE 保存应付
|
|
func (p *payable) Save(ctx context.Context, args ArgsPayableSave) (entity Entity, err error) {
|
|
xClient, err := client.GetClient(p)
|
|
if err != nil {
|
|
return
|
|
}
|
|
err = xClient.Call(ctx, "Save", args, &entity)
|
|
return
|
|
}
|