case-admin-api/utils/intToString.go
2025-03-07 17:23:50 +08:00

50 lines
1016 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 "未知"
}
}
// DoctorTitleToString 医生职称1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师)
func DoctorTitleToString(i int) string {
switch i {
case 1:
return "主任医师"
case 2:
return "主任中医师"
case 3:
return "副主任医师"
case 4:
return "副主任中医师"
case 5:
return "主治医师"
case 6:
return "住院医师"
default:
return ""
}
}