voucher/internal/biz/vo/cmb.go

53 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vo
// CmbFuncName . 招行接口名称
type CmbFuncName string
const (
// CmbNotifyFuncName . 券状态回调通知方法
CmbNotifyFuncName CmbFuncName = "updateCodeStatus.json"
CmbNotifyFuncNameUpdateCodeStatusForMulti CmbFuncName = "updateCodeStatusForMulti.json"
)
func (s CmbFuncName) GetValue() string {
return string(s)
}
// CmbStatus . 券通知状态
type CmbStatus string
const (
CmbStatusSuccess CmbStatus = "0" // 券可用
CmbStatusUse CmbStatus = "1" // 券使用
//CmbStatusExpired CmbStatus = "2" // 券过期-待确认是否通知
CmbStatusExpired CmbStatus = "0" // 券过期-等于券没有使用
)
func (s CmbStatus) GetValue() string {
return string(s)
}
// CmbResponseStatus . 响应状态
type CmbResponseStatus string
const (
CmbResponseStatusSuccess CmbResponseStatus = "1000" // 响应成功
CmbResponseStatusFail CmbResponseStatus = "1001" // 响应失败
)
func (s CmbResponseStatus) GetValue() string {
return string(s)
}
// CmbAvailableType . 有效期形式0固定有效期1动态有效期
type CmbAvailableType string
const (
CmbAvailableTypeFixed CmbAvailableType = "0" // 固定有效期
CmbAvailableTypeDynamic CmbAvailableType = "1" // 动态有效期
)
func (s CmbAvailableType) GetValue() string {
return string(s)
}