面包店
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.
 
 
 
 
 

21 regels
385 B

  1. package enum
  2. // MallGoodsSaleState 商品上架状态
  3. type MallGoodsSaleState int
  4. const (
  5. MallGoodsSaleStateOnShelf MallGoodsSaleState = iota + 1
  6. MallGoodsSaleStateOffShelf
  7. )
  8. func (em MallGoodsSaleState) String() string {
  9. switch em {
  10. case MallGoodsSaleStateOnShelf:
  11. return "销售中"
  12. case MallGoodsSaleStateOffShelf:
  13. return "下架"
  14. default:
  15. return "未知类型"
  16. }
  17. }