修改接口参数

finance
杨赟 2 years ago
parent fa1dc184d5
commit dd412d9cbf

@ -28,7 +28,7 @@ type ArgsWalletDirect struct {
}
// Direct @Title 直接消费
func (w *wallet) Direct(ctx context.Context, args ArgsDepositAuditReject) error {
func (w *wallet) Direct(ctx context.Context, args ArgsWalletDirect) error {
reply := 0
xClient, err := client.GetClient(w)
if err != nil {

@ -95,24 +95,21 @@ func (o *order) Submit(ctx context.Context, channelId string, args ArgsOrderSubm
}
// LadingBill @Title 提单
func (o *order) LadingBill(ctx context.Context, channelId string, args ArgsOrderSubmit) (reply ReplyOrderSubmit, err error) {
func (o *order) LadingBill(ctx context.Context, channelId string, orderSn string) (err error) {
reply := 0
xClient, err := client.GetClient(o)
if err != nil {
return
}
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", args, &reply)
return
}
type ArgsOrderClose struct {
return xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", orderSn, &reply)
}
// Close @Title 关闭
func (o *order) Close(ctx context.Context, channelId string, args ArgsOrderSubmit) (reply ReplyOrderSubmit, err error) {
func (o *order) Close(ctx context.Context, channelId string, orderSn string) (err error) {
reply := 0
xClient, err := client.GetClient(o)
if err != nil {
return
}
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", args, &reply)
return
return xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Submit", orderSn, &reply)
}

Loading…
Cancel
Save