广告平台(站长使用)
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

41 wiersze
711 B

  1. package enum
  2. type QualificationState int32
  3. const (
  4. QualificationStateForWait = 1
  5. QualificationStateForNormal = 2
  6. QualificationStateForFail = 3
  7. )
  8. func (gt QualificationState) String() string {
  9. switch gt {
  10. case QualificationStateForNormal:
  11. return "审核成功"
  12. case QualificationStateForFail:
  13. return "审核失败"
  14. case QualificationStateForWait:
  15. return "待审核"
  16. default:
  17. return "待审核"
  18. }
  19. }
  20. type QualificationType int32
  21. const (
  22. QualificationTypeCompany = 1
  23. QualificationTypeOwn = 2
  24. )
  25. func (gt QualificationType) String() string {
  26. switch gt {
  27. case QualificationTypeCompany:
  28. return "企业"
  29. case QualificationTypeOwn:
  30. return "个人"
  31. default:
  32. return "未知"
  33. }
  34. }