You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package enum
-
- type UserIdentity int32
-
- const (
- UserIdentityForCentralKitchenForStudent = 1
- UserIdentityForCentralKitchenForTeacher = 2
- UserIdentityForCentralKitchenForWorker = 3
- UserIdentityForSelfSupportForStudent = 4
- UserIdentityForSelfSupportForTeacher = 5
- UserIdentityForSelfSupportForWorker = 6
- )
-
- func (gt UserIdentity) String() string {
- switch gt {
- case UserIdentityForCentralKitchenForStudent:
- return "央厨-学生"
- case UserIdentityForCentralKitchenForTeacher:
- return "央厨-教职员工"
- case UserIdentityForCentralKitchenForWorker:
- return "央厨-工作人员"
- case UserIdentityForSelfSupportForStudent:
- return "自营-学生"
- case UserIdentityForSelfSupportForTeacher:
- return "自营-教职员工"
- case UserIdentityForSelfSupportForWorker:
- return "自营-工作人员"
- default:
- return "未知"
- }
- }
-
- type UserIdentityKind int32
-
- const (
- UserIdentityKindForCommon = 1
- UserIdentityKindForWorker = 2
- )
-
- func (gt UserIdentityKind) String() string {
- switch gt {
- case UserIdentityKindForCommon:
- return "普通用户"
- case UserIdentityKindForWorker:
- return "工作人员"
- default:
- return "未知"
- }
- }
-
- type UserIdentityState int32
-
- const (
- UserIdentityStateForNormal = 1
- UserIdentityStateForFreeze = 2
- )
-
- func (gt UserIdentityState) String() string {
- switch gt {
- case UserIdentityStateForNormal:
- return "正常"
- case UserIdentityStateForFreeze:
- return "冻结"
- default:
- return "未知"
- }
- }
|