Files
service/ik3cloud/dict.go
kanade 93524fca2f feat(erp): 添加银行账户信息字段和批量修改功能
- 在报销单、付款单和申请单中添加银行账号和账号名称字段
- 为报销单、付款单和申请单实现批量修改银行账户信息功能
- 在ik3cloud常量中添加银行账户操作类型
- 新增字典查询相关结构体和过滤条件类型
- 更新金蝶同步相关服务以支持银行账户信息处理
2026-01-08 11:54:02 +08:00

45 lines
1.1 KiB
Go

package ik3cloud
import (
"context"
"git.kumo.work/shama/service/client"
"git.kumo.work/shama/service/ik3cloud/constant"
)
type dict struct {
}
type DictItem struct {
Field1 any `json:"field1"`
Field2 any `json:"field2"`
Field3 any `json:"field3"`
Field4 any `json:"field4"`
Field5 any `json:"field5"`
Field6 any `json:"field6"`
Field7 any `json:"field7"`
Field8 any `json:"field8"`
}
type ArgsDictAll struct {
CompanyType constant.Action // 类型
FilterItem []FilterItem // 筛选
}
type FilterItem struct {
FieldName string `json:"FieldName"`
Compare constant.FilterCompare `json:"Compare"`
Value string `json:"Value"`
Left string `json:"Left"`
Right string `json:"Right"`
Logic string `json:"Logic"`
}
// All @TITLE 获取字典
func (d *dict) All(ctx context.Context, companyType constant.Action) (reply []DictItem, err error) {
xClient, err := client.GetClient(d)
if err != nil {
return
}
err = xClient.Call(ctx, "All", companyType, &reply)
return
}