Authored by LUOXC
@@ -1034,3 +1034,228 @@ code为200即为成功,否则是失败。 @@ -1034,3 +1034,228 @@ code为200即为成功,否则是失败。
1034 "message": "请求成功" 1034 "message": "请求成功"
1035 } 1035 }
1036 ``` 1036 ```
  1037 +## 30、添加商家入驻申请记录 ##
  1038 +
  1039 +添加商家入驻申请记录(?method=app.shops.insertApply)
  1040 +#### 请求参数
  1041 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  1042 +|:-------| -----:|-----:|-----:|-----:|----:|
  1043 +|brandName|String|是|卫龙|||
  1044 +|registerStatus|String|是|已申请|||
  1045 +|sellerName|String|是|卫龙辣条|||
  1046 +|sellerAddress|String|是|中国山西|||
  1047 +|zipCode|String|是|350000|||
  1048 +|contacts|String|是|梁走召|||
  1049 +|contactPhone|String|是|13000000000|||
  1050 +|contactEmail|String|是|sss@dd.com|||
  1051 +|onlineShopWebsite|String|是|1|||
  1052 +|categoryInfo|String|是||||
  1053 +|storeInfo|String|是||||
  1054 +|sellerRole|String|是|品牌商|||
  1055 +|brandWebsite|String|是|1|||
  1056 +|billingCycle|String|是|月结|||
  1057 +|warehouseAddress|String|是|11|||
  1058 +|producer|String|是|111|||
  1059 +|invoiceType|String|是|17%的增值税发票|||
  1060 +|newCycle|String|是|每周|||
  1061 +|quarterNum|int|是|1|||
  1062 +|supplyCycle|String|是|每周|||
  1063 +|haveStore|String|是|0|||
  1064 +|brandMaterial|String|是|/2015/04/12/18/0179f42b2a0d47.ppt|||
  1065 +|goodsMaterial|String|是|/2015/04/12/18/7b26b4ed2f8b391a55.xlsx|||
  1066 +|uid|int|是|4865015|||
  1067 +
  1068 +
  1069 +注意,通用的头部没有列出。
  1070 +请求示例
  1071 +http://192.168.102.205:8080/geteway/?method=app.shops.insertApply&brandName=卫龙best8888&registerStatus=已申请&sellerName=卫龙辣条&sellerAddress=中国山西&zipCode=350000&contacts=梁走召ss&contactPhone=1300000000013000000000130000000001300000000013000000000130000000001300000000013000000000&contactEmail=ssssssssww@dd.com&onlineShopWebsite=1&categoryInfo={\"0\":{\"category_one\":\"6\",\"category_two\":\"46\",\"category_price\":\"700-800\"},\"2\":{\"category_one\":\"3\",\"category_two\":\"28\",\"category_price\":\"1000-1500\"}}&storeInfo=[{\"store_address\":\"山东青岛市台东利群3楼linkcode男装专柜\",\"store_sales_volume\":\"100000\"}]&sellerRole=品牌商&brandWebsite=1&billingCycle=月结&warehouseAddress=11&producer=111&invoiceType=17%25的增值税发票&newCycle=每周&quarterNum=1&supplyCycle=每周&haveStore=0&brandMaterial=/2015/04/12/18/0174889f4ee3a51593f84f19f42b2a0d47.ppt&goodsMaterial=/2015/04/12/18/01b6ed2362f985b07b26b4ed2f8b391a55.xlsx&uid=4865015
  1072 +
  1073 +### 响应
  1074 +code为200即为成功,否则是失败。
  1075 +响应参数,data部分
  1076 +响应成功JSON格式如下所示:
  1077 +```json
  1078 +{
  1079 + "alg": "SALT_MD5",
  1080 + "code": 200,
  1081 + "data": [],
  1082 + "md5": "6d729d4b35f10fc73531210bd7ecff91",
  1083 + "message": "添加商家入驻申请记录成功。"
  1084 +}
  1085 +```
  1086 +响应失败JSON格式如下所示:
  1087 +```json
  1088 +{
  1089 + "alg": "SALT_MD5",
  1090 + "code": 500,
  1091 + "data": [],
  1092 + "md5": "6d729d4b35f10fc73531210bd7ecff91",
  1093 + "message": "添加商家入驻申请记录失败。"
  1094 +}
  1095 +```
  1096 +
  1097 +## 31、商家入驻获取产品大分类的列表 ##
  1098 +
  1099 +商家入驻获取产品大分类的列表(?method=app.category.queryMax)
  1100 +#### 请求参数
  1101 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  1102 +|:-------| -----:|-----:|-----:|-----:|----:|
  1103 +
  1104 +
  1105 +注意,通用的头部没有列出。
  1106 +请求示例
  1107 +http://192.168.102.205:8080/geteway/?method=app.category.queryMax
  1108 +
  1109 +### 响应
  1110 +code为200即为成功,否则是失败。
  1111 +响应参数,data部分
  1112 +响应成功JSON格式如下所示:
  1113 +```json
  1114 +{
  1115 + "alg": "SALT_MD5",
  1116 + "code": 200,
  1117 + "data": [
  1118 + {
  1119 + "category_id": 1,
  1120 + "category_name": "上衣"
  1121 + },
  1122 + {
  1123 + "category_id": 3,
  1124 + "category_name": "裤装"
  1125 + },
  1126 + {
  1127 + "category_id": 4,
  1128 + "category_name": "裙装"
  1129 + },
  1130 + {
  1131 + "category_id": 6,
  1132 + "category_name": "鞋靴"
  1133 + },
  1134 + {
  1135 + "category_id": 7,
  1136 + "category_name": "包类/装备"
  1137 + },
  1138 + {
  1139 + "category_id": 8,
  1140 + "category_name": "服配"
  1141 + },
  1142 + {
  1143 + "category_id": 308,
  1144 + "category_name": "内衣/家居服"
  1145 + },
  1146 + {
  1147 + "category_id": 10,
  1148 + "category_name": "创意生活"
  1149 + },
  1150 + {
  1151 + "category_id": 567,
  1152 + "category_name": "一级目录"
  1153 + },
  1154 + {
  1155 + "category_id": 360,
  1156 + "category_name": "泳衣"
  1157 + },
  1158 + {
  1159 + "category_id": 592,
  1160 + "category_name": "0408新增1"
  1161 + },
  1162 + {
  1163 + "category_id": 365,
  1164 + "category_name": "潮童"
  1165 + },
  1166 + {
  1167 + "category_id": 241,
  1168 + "category_name": "数码周边"
  1169 + }
  1170 + ],
  1171 + "md5": "8d152a99a6403afb3028b108d4a73d32",
  1172 + "message": "Category Product List."
  1173 +}
  1174 +```
  1175 +
  1176 +## 32、商家入驻根据parentId获取二级分类的列表 ##
  1177 +
  1178 +商家入驻根据parentId获取二级分类的列表(?method=app.category.queryMin)
  1179 +#### 请求参数
  1180 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  1181 +|:-------| -----:|-----:|-----:|-----:|----:|
  1182 +|parent_id|String|否|1|||
  1183 +
  1184 +注意,通用的头部没有列出。
  1185 +请求示例
  1186 +http://192.168.102.205:8080/geteway/?method=app.category.queryMin&parent_id=1
  1187 +
  1188 +### 响应
  1189 +code为200即为成功,否则是失败。
  1190 +响应参数,data部分
  1191 +响应成功JSON格式如下所示:
  1192 +```json
  1193 +{
  1194 + "alg": "SALT_MD5",
  1195 + "code": 200,
  1196 + "data": [
  1197 + {
  1198 + "category_id": 11,
  1199 + "category_name": "T恤"
  1200 + },
  1201 + {
  1202 + "category_id": 13,
  1203 + "category_name": "POLO"
  1204 + },
  1205 + {
  1206 + "category_id": 14,
  1207 + "category_name": "背心"
  1208 + },
  1209 + {
  1210 + "category_id": 12,
  1211 + "category_name": "衬衫"
  1212 + },
  1213 + {
  1214 + "category_id": 16,
  1215 + "category_name": "卫衣"
  1216 + },
  1217 + {
  1218 + "category_id": 257,
  1219 + "category_name": "毛衣/针织"
  1220 + },
  1221 + {
  1222 + "category_id": 21,
  1223 + "category_name": "夹克"
  1224 + },
  1225 + {
  1226 + "category_id": 22,
  1227 + "category_name": "大衣/风衣"
  1228 + },
  1229 + {
  1230 + "category_id": 226,
  1231 + "category_name": "防风外套"
  1232 + },
  1233 + {
  1234 + "category_id": 19,
  1235 + "category_name": "西装"
  1236 + },
  1237 + {
  1238 + "category_id": 15,
  1239 + "category_name": "马甲"
  1240 + },
  1241 + {
  1242 + "category_id": 20,
  1243 + "category_name": "棉衣"
  1244 + },
  1245 + {
  1246 + "category_id": 18,
  1247 + "category_name": "羽绒服"
  1248 + },
  1249 + {
  1250 + "category_id": 172,
  1251 + "category_name": "皮衣"
  1252 + },
  1253 + {
  1254 + "category_id": 412,
  1255 + "category_name": "套装"
  1256 + }
  1257 + ],
  1258 + "md5": "5e9e33f14cfb223f8833008c9c5b27fe",
  1259 + "message": "Category Product List."
  1260 +}
  1261 +```
@@ -59,6 +59,8 @@ code==200表示成功,其它都为失败 @@ -59,6 +59,8 @@ code==200表示成功,其它都为失败
59 "exchange_mode": 10, 59 "exchange_mode": 10,
60 "mobile": "13776693005", 60 "mobile": "13776693005",
61 "order_code": 16062099, 61 "order_code": 16062099,
  62 + "init_order_code": 16062099,
  63 + "source_order_code": 16062099,
62 "province": "江苏省", 64 "province": "江苏省",
63 "receipt_time": "2", 65 "receipt_time": "2",
64 "remark": "用户换货", 66 "remark": "用户换货",
@@ -87,28 +89,72 @@ code==200表示成功,其它都为失败 @@ -87,28 +89,72 @@ code==200表示成功,其它都为失败
87 | exchanges | amq.topic | 89 | exchanges | amq.topic |
88 | route key | erp.createChangeOrder | 90 | route key | erp.createChangeOrder |
89 91
  92 +成功
  93 +
90 ```json 94 ```json
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} 95 +{
  96 + "code": 200,
  97 + "message": "ok",
  98 + "data": {
  99 + "id": 1,
  100 + "init_order_code": "111",
  101 + "source_order_code": 1111,
  102 + "new_order_code": 1111,
  103 + "exchange_id": 111,
  104 + "returned_id": 111,
  105 + "exchange_status": 10,
  106 + "returned_status": 10
  107 + }
  108 +}
  109 +```
  110 +
  111 +失败
  112 +
  113 +```json
  114 +{
  115 + "code":500,
  116 + "message":"error",
  117 + "data":{
  118 + "id": 1,
  119 + "init_order_code": "111",
  120 + "source_order_code": 1111,
  121 + "new_order_code": 1111,
  122 + "exchange_id": 111,
  123 + "returned_id": 111,
  124 + "exchange_status": 91, // 客服驳回
  125 + "returned_status": 91 // 客服驳回
  126 + }
  127 +}
92 ``` 128 ```
93 129
94 ### 前台更新换货快递信息 130 ### 前台更新换货快递信息
95 | | | 131 | | |
96 | :-- | :-- | 132 | :-- | :-- |
97 | exchanges | amq.topic | 133 | exchanges | amq.topic |
98 -| route key | order.updateChangeOrderExpressInfo | 134 +| route key | order.updateChangeRefundOrderExpressInfo |
99 135
100 ```json 136 ```json
101 -{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"} 137 +{ "id":1,
  138 + "apply_id":40,
  139 + "express_number":"603596395359",
  140 + "express_name":"顺丰",
  141 + "express_id":"23",
  142 + type:"change" // 表示类型为换货
  143 +}
102 ``` 144 ```
103 145
104 ### ERP更新换货单状态 146 ### ERP更新换货单状态
105 | | | 147 | | |
106 | :-- | :-- | 148 | :-- | :-- |
107 | exchanges | amq.topic | 149 | exchanges | amq.topic |
108 -| route key | erp.updateChangeOrderStatus | 150 +| route key | erp.updateChangeRefundOrderStatus |
109 151
110 ```json 152 ```json
111 -{"id":1,"status":40} 153 +{
  154 + "returned_id":1, //returned_id为erp系统退货单id唯一主键
  155 + "status":40,
  156 + "type":"change" //"change" 表示换货类型,"refund"表示退货类型
  157 +}
112 ``` 158 ```
113 159
114 160
@@ -118,34 +164,106 @@ code==200表示成功,其它都为失败 @@ -118,34 +164,106 @@ code==200表示成功,其它都为失败
118 | exchanges | amq.topic | 164 | exchanges | amq.topic |
119 | route key | order.createRefundOrder | 165 | route key | order.createRefundOrder |
120 166
  167 +```json
  168 +{
  169 + "uid": "3342109",
  170 + "alipay_account": "13912008849",
  171 + "alipay_name": "xxxx",
  172 + "area_code": "area_code",
  173 + "bank_card": "6228480605428963215",
  174 + "bank_name": "中国农业银行",
  175 + "city": "南京市",
  176 + "county": "",
  177 + "order_code": "308545172",
  178 + "payee_name": "张璐",
  179 + "province": "江苏省",
  180 + "remark": "尺寸不合适",
  181 + "return_amount_mode": "2",
  182 + "order_returned_id":123,//前台表生成的退货订单主键,其余字段同老接口
  183 + "returned_goods_list": [
  184 + {
  185 + "product_sku": "383669",
  186 + "goods_type": "1",
  187 + "last_price": "334",
  188 + "returned_reason": "1",
  189 + "remark": "尺寸不合适",
  190 + "evidence_images": ""
  191 + }
  192 + ]
  193 +}
  194 +```
  195 +
  196 +
121 ### ERP创建退货单 197 ### ERP创建退货单
122 | | | 198 | | |
123 | :-- | :-- | 199 | :-- | :-- |
124 | exchanges | amq.topic | 200 | exchanges | amq.topic |
125 | route key | erp.createRefundOrder | 201 | route key | erp.createRefundOrder |
126 202
  203 +
  204 +成功
  205 +
  206 +```json
  207 +{
  208 + "code": 200,
  209 + "message": "ok",
  210 + "data": {
  211 + "order_returned_id":1, //order_returned_id为前台退货id唯一主键
  212 + "returned_id":1, //returned_id为erp退货id唯一主键
  213 + "returned_status":10,
  214 + "real_returned_amount":100,
  215 + "is_return_coupon":"N",
  216 + "return_yoho_coin":11111
  217 + }
  218 +}
  219 +```
  220 +
  221 +失败
  222 +
127 ```json 223 ```json
128 -{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111} 224 +{
  225 + "code":500,
  226 + "message":"error",
  227 + "data":{
  228 + "order_returned_id":1, //order_returned_id为前台退货id唯一主键
  229 + "returned_id":1, //returned_id为erp退货id唯一主键
  230 + "returned_status":91 //客服驳回
  231 + }
  232 +}
129 ``` 233 ```
130 234
  235 +
131 ### 前台更新退货快递信息 236 ### 前台更新退货快递信息
132 | | | 237 | | |
133 | :-- | :-- | 238 | :-- | :-- |
134 | exchanges | amq.topic | 239 | exchanges | amq.topic |
135 -| route key | order.updateRefundOrderExpressInfo | 240 +| route key | order.updateChangeRefundOrderExpressInfo |
136 241
137 ```json 242 ```json
138 -{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"} 243 +{ "order_returned_id":1, //order_returned_id为前台退货id唯一主键
  244 + "apply_id":40, //apply_id为erp退货id唯一主键
  245 + "express_number":"603596395359",
  246 + "express_name":"顺丰",
  247 + "express_id":"23"
  248 + "type":"refund" // 表示类型为退货
  249 +}
  250 +
  251 +
139 ``` 252 ```
140 253
141 ### ERP更新退货单状态 254 ### ERP更新退货单状态
142 | | | 255 | | |
143 | :-- | :-- | 256 | :-- | :-- |
144 | exchanges | amq.topic | 257 | exchanges | amq.topic |
145 -| route key | erp.updateRefundOrderStatus | 258 +| route key | erp.updateChangeRefundOrderStatus |
146 259
147 ```json 260 ```json
148 -{"id":1,"status":40} 261 +{
  262 + "returned_id":1, //returned_id为erp系统退货单id唯一主键
  263 + "status":40,
  264 + "type":"refund" //"change" 表示换货类型,"refund"表示退货类型
  265 +}
  266 +
149 ``` 267 ```
150 268
151 269