添加利率接口

finance
杨赟 2 years ago
parent a4d30272e0
commit 6d6c931009

@ -26,12 +26,12 @@ func (r *rate) All(ctx context.Context) (result []RateItem, err error) {
} }
// Get @Title 获取利率信息 // Get @Title 获取利率信息
func (r *rate) Get(ctx context.Context) (result RateItem, err error) { func (r *rate) Get(ctx context.Context, rateId uint) (result RateItem, err error) {
xClient, err := client.GetClient(r) xClient, err := client.GetClient(r)
if err != nil { if err != nil {
return return
} }
err = xClient.Call(ctx, "Get", 0, &result) err = xClient.Call(ctx, "Get", rateId, &result)
return return
} }

Loading…
Cancel
Save