智慧食堂
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.

41 line
783 B

  1. package enum
  2. type FactoryOrdOrderStatus int32
  3. const (
  4. FactoryOrdOrderStatusForSuccess = 1
  5. FactoryOrdOrderStatusForRefund = 2
  6. FactoryOrdOrderStatusForClose = 3
  7. )
  8. func (gt FactoryOrdOrderStatus) String() string {
  9. switch gt {
  10. case FactoryOrdOrderStatusForSuccess:
  11. return "支付成功"
  12. case FactoryOrdOrderStatusForRefund:
  13. return "已退款"
  14. case FactoryOrdOrderStatusForClose:
  15. return "已关闭"
  16. default:
  17. return "未知"
  18. }
  19. }
  20. type FactoryOrdTradeChannel string
  21. const (
  22. FactoryOrdTradeChannelForAli = "alipay"
  23. FactoryOrdTradeChannelForWx = "wechat"
  24. )
  25. func (gt FactoryOrdTradeChannel) String() string {
  26. switch gt {
  27. case FactoryOrdTradeChannelForAli:
  28. return "支付宝"
  29. case FactoryOrdTradeChannelForWx:
  30. return "微信"
  31. default:
  32. return "未知"
  33. }
  34. }