golang 的 rabbitmq 消费项目
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.
 
 
 

20 lines
502 B

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