重构增加模型枚举值定义
This commit is contained in:
24
web/domains/trade/types.go
Normal file
24
web/domains/trade/types.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package trade
|
||||
|
||||
type Type int32
|
||||
|
||||
const (
|
||||
TypePurchase Type = iota + 1 // 购买
|
||||
TypeRecharge // 充值
|
||||
)
|
||||
|
||||
type Method int32
|
||||
|
||||
const (
|
||||
MethodAlipay Method = iota + 1 // 支付宝
|
||||
MethodWeChat // 微信
|
||||
)
|
||||
|
||||
type Status int32
|
||||
|
||||
const (
|
||||
StatusPending Status = iota // 待支付
|
||||
StatusSuccess // 已支付
|
||||
StatusCanceled // 已取消
|
||||
StatusRefunded
|
||||
) // 已退款
|
||||
Reference in New Issue
Block a user