面包店

enum_company.go 285 B

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