Files
service/ik3cloud/dict.go
kanade 929366ed0b feat(ik3cloud): 新增字典服务与币种结算方式收付款用途常量
- 新增 DictItem 结构体定义字段 field1 至 field8
- 实现 dict.All 方法用于获取字典数据
- 添加 BD_Currency、BD_SETTLETYPE 和 CN_RECPAYPURPOSE 常量
- 在 client.go 中为 ik3cloud 服务增加本地调试发现逻辑
2025-12-12 17:20:22 +08:00

32 lines
657 B
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"`
}
// 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
}