feat(erp): 添加转账功能模块

- 在ERP服务中新增Transfer模块
- 为报销模块添加转账相关字段和结构
- 实现转账类型查询接口
- 添加报销单提交打款功能
- 定义转账相关的数据结构和参数
- 集成客户端调用支持转账业务逻辑
This commit is contained in:
2026-10-10 13:19:15 +08:00
parent 80f005f412
commit c78d05eff2
4 changed files with 53 additions and 2 deletions

View File

@@ -1 +1,25 @@
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
}