2.0订单rpc数据结构
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.

22 lines
479 B

  1. package orderrpcv2
  2. func GetStatus(key string) string {
  3. statusList := StatusList()
  4. if _, ok := statusList[key]; ok {
  5. return statusList[key]
  6. }
  7. return ""
  8. }
  9. func StatusList() map[string]string {
  10. return map[string]string{
  11. "created": "已创建",
  12. "payed": "已支付",
  13. "finished": "已完成",
  14. "autofinished": "自动完成",
  15. "cancel": "取消",
  16. "autocancel": "自动取消",
  17. "closed": "关闭",
  18. "shipped": "已发货",
  19. }
  20. }