From 5167292432fc877722480b883974dc6f1e9d5366 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 9 Dec 2022 10:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A9=E7=8E=87=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wholesale/setting/rate.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wholesale/setting/rate.go b/wholesale/setting/rate.go index 8ffb1fa..07717b5 100644 --- a/wholesale/setting/rate.go +++ b/wholesale/setting/rate.go @@ -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, rateId uint) (result RateItem, err error) { + xClient, err := client.GetClient(r) + if err != nil { + return + } + err = xClient.Call(ctx, "Get", rateId, &result) + return +} + type ArgsRateChannel struct { ChannelId uint // 渠道id RateId uint // 费率id