Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【TODO】支持生成GetXXXDesc函数获取内容 #1

Open
jinfeijie opened this issue Mar 14, 2024 · 0 comments
Open

【TODO】支持生成GetXXXDesc函数获取内容 #1

jinfeijie opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jinfeijie
Copy link
Owner

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 "默认返回的内容"
	}
}
@jinfeijie jinfeijie self-assigned this Mar 14, 2024
@jinfeijie jinfeijie added the enhancement New feature or request label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant