添加错误

finance
杨赟 2 years ago
parent 54a1a70b6d
commit fa1dc184d5

@ -14,6 +14,7 @@ const (
ErrorOrderLadingBill Error = 11008 // 订单已提单 ErrorOrderLadingBill Error = 11008 // 订单已提单
ErrorOrderClose Error = 11009 // 订单已关闭 ErrorOrderClose Error = 11009 // 订单已关闭
ErrorOrderTimeOut Error = 11010 // 订单超时 ErrorOrderTimeOut Error = 11010 // 订单超时
ErrorOrderError Error = 11011 // 订单错误
) )
var ErrorCodes = map[Error]string{ var ErrorCodes = map[Error]string{
@ -27,6 +28,7 @@ var ErrorCodes = map[Error]string{
ErrorOrderLadingBill: "订单已提单", ErrorOrderLadingBill: "订单已提单",
ErrorOrderClose: "订单已关闭", ErrorOrderClose: "订单已关闭",
ErrorOrderTimeOut: "订单超时", ErrorOrderTimeOut: "订单超时",
ErrorOrderError: "订单错误",
} }
func (e Error) Error() string { func (e Error) Error() string {

Loading…
Cancel
Save