面包店
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_staff.go 249 B

7 月之前
12345678910111213141516171819
  1. package enum
  2. type StaffSex int32
  3. const (
  4. StaffSexForMan = 1
  5. StaffSexForWomen = 2
  6. )
  7. func (gt StaffSex) String() string {
  8. switch gt {
  9. case StaffSexForMan:
  10. return "男"
  11. case StaffSexForWomen:
  12. return "女"
  13. default:
  14. return "未知"
  15. }
  16. }