广告平台(站长使用)
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.

enum_qualification.go 711 B

4 maanden geleden
4 maanden geleden
4 maanden geleden
4 maanden geleden
4 maanden geleden
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. }