Authored by LUOXC

update

@@ -18,22 +18,34 @@ code==200表示成功,其它都为失败 @@ -18,22 +18,34 @@ code==200表示成功,其它都为失败
18 18
19 ## MQ消息数据结构 19 ## MQ消息数据结构
20 20
21 -  
22 ### 取消订单 21 ### 取消订单
23 -TOPIC:order.cancel 22 +
  23 +| | |
  24 +| :-- | :-- |
  25 +| exchanges | amq.topic |
  26 +| route key | order.cancel |
  27 +
24 ```json 28 ```json
25 {"orderCode":100000,"status":900} 29 {"orderCode":100000,"status":900}
26 ``` 30 ```
27 31
28 ### 订单状态同步 32 ### 订单状态同步
29 -TOPIC:order.erpstatus 33 +
  34 +| | |
  35 +| :-- | :-- |
  36 +| exchanges | amq.topic |
  37 +| route key | order.erpstatus |
30 ```json 38 ```json
31 {"orderCode":100000,"status":901} 39 {"orderCode":100000,"status":901}
32 ``` 40 ```
33 41
34 42
35 ### 前台创建换货单 43 ### 前台创建换货单
36 -TOPIC:order.createChangeOrder 44 +| | |
  45 +| :-- | :-- |
  46 +| exchanges | amq.topic |
  47 +| route key | order.createChangeOrder |
  48 +
37 ```json 49 ```json
38 { 50 {
39 "id": 1, 51 "id": 1,
@@ -70,42 +82,68 @@ TOPIC:order.createChangeOrder @@ -70,42 +82,68 @@ TOPIC:order.createChangeOrder
70 ``` 82 ```
71 83
72 ### ERP创建换货单 84 ### ERP创建换货单
73 -TOPIC:erp.createChangeOrder 85 +| | |
  86 +| :-- | :-- |
  87 +| exchanges | amq.topic |
  88 +| route key | erp.createChangeOrder |
  89 +
74 ```json 90 ```json
75 {"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10} 91 {"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}
76 ``` 92 ```
77 93
78 ### 前台更新换货快递信息 94 ### 前台更新换货快递信息
79 -TOPIC:order.updateChangeOrderExpressInfo 95 +| | |
  96 +| :-- | :-- |
  97 +| exchanges | amq.topic |
  98 +| route key | order.updateChangeOrderExpressInfo |
  99 +
80 ```json 100 ```json
81 {"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"} 101 {"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
82 ``` 102 ```
83 103
84 ### ERP更新换货单状态 104 ### ERP更新换货单状态
85 -TOPIC:erp.updateChangeOrderStatus 105 +| | |
  106 +| :-- | :-- |
  107 +| exchanges | amq.topic |
  108 +| route key | erp.updateChangeOrderStatus |
  109 +
86 ```json 110 ```json
87 {"id":1,"status":40} 111 {"id":1,"status":40}
88 ``` 112 ```
89 113
90 114
91 ### 前台创建退货单 115 ### 前台创建退货单
92 -TOPIC:order.createRefundOrder  
93 - 116 +| | |
  117 +| :-- | :-- |
  118 +| exchanges | amq.topic |
  119 +| route key | order.createRefundOrder |
94 120
95 ### ERP创建退货单 121 ### ERP创建退货单
96 -TOPIC:erp.createRefundOrder 122 +| | |
  123 +| :-- | :-- |
  124 +| exchanges | amq.topic |
  125 +| route key | erp.createRefundOrder |
  126 +
97 ```json 127 ```json
98 {"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111} 128 {"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}
99 ``` 129 ```
100 130
101 ### 前台更新退货快递信息 131 ### 前台更新退货快递信息
102 -TOPIC:order.updateRefundOrderExpressInfo 132 +| | |
  133 +| :-- | :-- |
  134 +| exchanges | amq.topic |
  135 +| route key | order.updateRefundOrderExpressInfo |
  136 +
103 ```json 137 ```json
104 {"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"} 138 {"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
105 ``` 139 ```
106 140
107 ### ERP更新退货单状态 141 ### ERP更新退货单状态
108 -TOPIC:erp.updateRefundOrderStatus 142 +| | |
  143 +| :-- | :-- |
  144 +| exchanges | amq.topic |
  145 +| route key | erp.updateRefundOrderStatus |
  146 +
109 ```json 147 ```json
110 {"id":1,"status":40} 148 {"id":1,"status":40}
111 ``` 149 ```