|
|
@ -20,3 +20,14 @@ func (r *rate) All(ctx context.Context) (result []RateItem, err error) {
|
|
|
|
err = client.GetClient(r).Call(ctx, "All", 0, &result)
|
|
|
|
err = client.GetClient(r).Call(ctx, "All", 0, &result)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsRateChannel struct {
|
|
|
|
|
|
|
|
ChannelId uint // 渠道id
|
|
|
|
|
|
|
|
RateId uint // 费率id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Channel @Title 设置渠道利率
|
|
|
|
|
|
|
|
func (r *rate) Channel(ctx context.Context, args ArgsRateChannel) error {
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
return client.GetClient(r).Call(ctx, "Channel", args, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|