hepa-calc-admin-api/utils/intToString.go

30 lines
582 B
Go
Raw Permalink 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 utils
// OrderCancelReasonToString 订单取消原因1:主动取消 2:后台取消 3:支付超时取消)
func OrderCancelReasonToString(i int) string {
switch i {
case 1:
return "主动取消"
case 2:
return "后台取消"
case 3:
return "支付超时取消"
default:
return "取消"
}
}
// OrderSingleStatusToString 订单状态1:待支付 2:已完成 3:已取消)
func OrderSingleStatusToString(i int) string {
switch i {
case 1:
return "待支付"
case 2:
return "已完成"
case 3:
return "已取消"
default:
return "未知"
}
}