广告平台(站长使用)
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

enum_qualification.go 711 B

pirms 2 mēnešiem
12345678910111213141516171819202122232425262728293031323334353637383940
  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. }