25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- 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 "未知"
- }
- }
|