添加错误信息

finance
杨赟 2 years ago
parent 978eb74fe3
commit d66925d4dc

@ -15,6 +15,8 @@ const (
ErrorOrderClose Error = 11009 // 订单已关闭
ErrorOrderTimeOut Error = 11010 // 订单超时
ErrorOrderError Error = 11011 // 订单错误
ErrorOrderUnPay Error = 11012 // 订单未支付
ErrorOrderInvalid Error = 11013 // 订单失效
)
var ErrorCodes = map[Error]string{
@ -29,6 +31,8 @@ var ErrorCodes = map[Error]string{
ErrorOrderClose: "订单已关闭",
ErrorOrderTimeOut: "订单超时",
ErrorOrderError: "订单错误",
ErrorOrderUnPay: "订单未支付",
ErrorOrderInvalid: "订单失效",
}
func (e Error) Error() string {

Loading…
Cancel
Save