- 在ERP服务中新增Transfer模块 - 为报销模块添加转账相关字段和结构 - 实现转账类型查询接口 - 添加报销单提交打款功能 - 定义转账相关的数据结构和参数 - 集成客户端调用支持转账业务逻辑
26 lines
421 B
Go
26 lines
421 B
Go
package erp
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.kumo.work/shama/service/client"
|
|
)
|
|
|
|
type transfer struct {
|
|
}
|
|
|
|
type TransferItem struct {
|
|
Key string `json:"key"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// Types @TITLE 打款类型
|
|
func (t *template) Types(ctx context.Context) (reply []TransferItem, err error) {
|
|
xClient, err := client.GetClient(t)
|
|
if err != nil {
|
|
return
|
|
}
|
|
err = xClient.Call(ctx, "ExportData", 0, &reply)
|
|
return
|
|
}
|