diff --git a/supply/setting/rate.go b/supply/setting/rate.go index f9038b2..bbde3c8 100644 --- a/supply/setting/rate.go +++ b/supply/setting/rate.go @@ -20,3 +20,14 @@ func (r *rate) All(ctx context.Context) (result []RateItem, err error) { err = client.GetClient(r).Call(ctx, "All", 0, &result) 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) +}