package erp import ( "context" "time" client2 "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" ) type ik3cloud struct { } type ArgsGetCurrencyRate struct { Currency string Date time.Time } // GetCurrencyRate @TITLE 获取汇率 func (i *ik3cloud) GetCurrencyRate(ctx context.Context, args ArgsGetCurrencyRate) (rate decimal.Decimal, err error) { xClient, err := client2.GetClient(i) if err != nil { return } err = xClient.Call(ctx, "GetCurrencyRate", args, &rate) return }