面包店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
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. }