|
|
|
@ -25,6 +25,16 @@ func (r *rate) All(ctx context.Context) (result []RateItem, err error) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Get @Title 获取利率信息
|
|
|
|
|
func (r *rate) Get(ctx context.Context) (result RateItem, err error) {
|
|
|
|
|
xClient, err := client.GetClient(r)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "Get", 0, &result)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsRateChannel struct {
|
|
|
|
|
ChannelId uint // 渠道id
|
|
|
|
|
RateId uint // 费率id
|
|
|
|
|