|
|
@ -93,12 +93,28 @@ type ArgsSetAfsAuditPrice struct {
|
|
|
|
Switch uint
|
|
|
|
Switch uint
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// SetAfsAuditPrice @Title 设置需要审核金额
|
|
|
|
// SetAfsAuditConfig @Title 设置售后审核配置
|
|
|
|
func (a *afsAudit) SetAfsAuditPrice(ctx context.Context, args ArgsSetAfsAuditPrice) error {
|
|
|
|
func (a *afsAudit) SetAfsAuditConfig(ctx context.Context, args ArgsSetAfsAuditPrice) error {
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return xClient.Call(ctx, "SetAfsAuditPrice", args, &reply)
|
|
|
|
return xClient.Call(ctx, "SetAfsAuditConfig", args, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ReplyAfsAuditConfig struct {
|
|
|
|
|
|
|
|
Price decimal.Decimal
|
|
|
|
|
|
|
|
Switch uint
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GetAfsAuditConfig @Title 获取售后审核配置
|
|
|
|
|
|
|
|
func (a *afsAudit) GetAfsAuditConfig(ctx context.Context) (reply ReplyAfsAuditConfig, err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
args := 0
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "GetAfsAuditConfig", args, &reply)
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|