package v1

import "github.com/gogf/gf/v2/frame/g"

type RedeemConfigGetReq struct {
	g.Meta `path:"/cardInfo/cTrip/config/get" tags:"携程充值卡设置" method:"get" summary:"获取携程卡片设置"`
}

type RedeemConfigGetRes struct {
	IsAllowDifferentAmount          bool  `json:"isAllowDifferentAmount" description:"是否允许金额异议充值"`
	IsAllowDifferentSucceedCallback bool  `json:"isAllowDifferentSucceedCallback" description:"是否允许金额异议回调(充值成功)"`
	IsAllowDifferentFailCallback    bool  `json:"isAllowDifferentFailCallback" description:"是否允许金额异议回调(充值失败)"`
	RedeemCardMinAmount             int64 `json:"redeemCardMinAmount" description:"充值卡最小充值金额"`
	IsAllowCompensatedCallback      bool  `json:"isAllowCompensatedCallback" description:"是否允许补卡自动回调"`
	RedeemCardRate                  int   `json:"redeemCardRate" description:"充值卡充值速率"`
}

type RedeemConfigSetReq struct {
	g.Meta                          `path:"/cardInfo/cTrip/config/set" tags:"携程充值卡设置" method:"post" summary:"设置"`
	IsAllowDifferentAmount          bool  `json:"isAllowDifferentAmount" description:"是否允许金额异议充值" v:"required#金额异议设置不能为空"`
	IsAllowDifferentSucceedCallback bool  `json:"isAllowDifferentSucceedCallback" description:"是否允许金额异议回调(充值成功)" v:"required#是否允许成功回调不能为空"`
	IsAllowDifferentFailCallback    bool  `json:"isAllowDifferentFailCallback" description:"是否允许金额异议回调(充值失败)" v:"required#是否允许失败回调不能为空"`
	RedeemCardMinAmount             int64 `json:"redeemCardMinAmount" description:"账号单日最大充值次数" v:"required#最小充值金额不能为空"`
	IsAllowCompensatedCallback      bool  `json:"isAllowCompensatedCallback" description:"是否允许补卡自动回调" v:"required#最小充值金额不能为空"`
	RedeemCardRate                  int   `json:"redeemCardRate" description:"充值卡充值速率" v:"required#充值卡充值速率不能为空"`
}

type RedeemConfigSetRes struct {
}
