智慧食堂-队列消费项目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shipping_template.go 502 B

2 달 전
12345678910111213141516171819
  1. package enum
  2. type MallShippingTemplateCalculateType int
  3. const (
  4. MallShippingTemplateCalculateTypeByWeight MallShippingTemplateCalculateType = iota + 1 // 重量
  5. MallShippingTemplateCalculateTypeByNum // 件数
  6. )
  7. func (e MallShippingTemplateCalculateType) String() string {
  8. switch e {
  9. case MallShippingTemplateCalculateTypeByWeight:
  10. return "按重量"
  11. case MallShippingTemplateCalculateTypeByNum:
  12. return "按件数"
  13. default:
  14. return ""
  15. }
  16. }