-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
type Status int
const (
StatusBeg Status = iota // 开始
StatusProcessing // 流程中
StatusPass // 通过
StatusReject // 拒绝
StatusEnd // 结束
// StatusDefault // "默认返回的内容"
)
func GetStatusDesc(status int) string {
switch Status(status) {
case StatusBeg:
return "开始"
case StatusProcessing:
return "流程中"
case StatusPass:
return "通过"
case StatusReject:
return "拒绝"
case StatusEnd:
return "结束"
default:
return "默认返回的内容"
}
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request