广告平台(媒体使用)
 
 
 
 
 
 

20 linhas
267 B

  1. package enum
  2. type RoleState int32
  3. const (
  4. RoleStateForNormal = 1
  5. RoleStateForFreeze = 2
  6. )
  7. func (gt RoleState) String() string {
  8. switch gt {
  9. case RoleStateForNormal:
  10. return "正常"
  11. case RoleStateForFreeze:
  12. return "冻结"
  13. default:
  14. return "未知"
  15. }
  16. }