-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
312 lines (312 loc) · 8.68 KB
/
swagger.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
{
"swagger" : "2.0",
"info" : {
"description" : "The api document is built at: 2021-06-19 18:40:13 +0800",
"version" : "0",
"title" : "接口文档"
},
"basePath" : "/",
"tags" : [ {
"name" : "ComplaintController",
"description" : ""
}, {
"name" : "HealthCheckController",
"description" : "Consul健康检查服务\n"
} ],
"paths" : {
"/315/complaints" : {
"get" : {
"tags" : [ "ComplaintController" ],
"summary" : "投诉列表首页数据",
"description" : "投诉列表首页数据\n",
"operationId" : "ComplaintController.getComplaintList",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/AjaxResponse%3CList%3CComplaintVO%3E%3E"
}
}
}
}
},
"/315/saveNewTs" : {
"post" : {
"tags" : [ "ComplaintController" ],
"summary" : "提交新的投诉单",
"description" : "提交新的投诉单\n",
"operationId" : "ComplaintController.batchUpdateOpWorkOrder",
"parameters" : [ {
"in" : "body",
"name" : "complaintVO",
"required" : true,
"schema" : {
"$ref" : "#/definitions/ComplaintVO"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/AjaxResponse%3CBoolean%3E"
}
}
}
}
},
"/315/statistics" : {
"get" : {
"tags" : [ "ComplaintController" ],
"summary" : "查询投诉统计信息",
"description" : "查询投诉统计信息\n",
"operationId" : "ComplaintController.getStatistics",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/AjaxResponse%3CStatisticsInfo%3E"
}
}
}
}
},
"/i/health" : {
"post" : {
"tags" : [ "HealthCheckController" ],
"summary" : "健康检查接口",
"description" : "健康检查接口\n",
"operationId" : "HealthCheckController.checkHealth",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation"
}
}
}
}
},
"definitions" : {
"AjaxResponse<Boolean>" : {
"properties" : {
"code" : {
"type" : "integer",
"format" : "int32",
"description" : "\\[RetCode\\] ,状态码,200成功\n"
},
"errorCode" : {
"type" : "string",
"description" : "错误码. 500服务端执行失败\n"
},
"errorMsg" : {
"type" : "string",
"description" : "错误文案\n"
},
"data" : {
"type" : "boolean",
"description" : "具体业务需要返回结果\n"
}
}
},
"AjaxResponse<List<ComplaintVO>>" : {
"properties" : {
"code" : {
"type" : "integer",
"format" : "int32",
"description" : "\\[RetCode\\] ,状态码,200成功\n"
},
"errorCode" : {
"type" : "string",
"description" : "错误码. 500服务端执行失败\n"
},
"errorMsg" : {
"type" : "string",
"description" : "错误文案\n"
},
"data" : {
"type" : "array",
"description" : "具体业务需要返回结果\n",
"items" : {
"$ref" : "#/definitions/ComplaintVO"
}
}
}
},
"AjaxResponse<StatisticsInfo>" : {
"properties" : {
"code" : {
"type" : "integer",
"format" : "int32",
"description" : "\\[RetCode\\] ,状态码,200成功\n"
},
"errorCode" : {
"type" : "string",
"description" : "错误码. 500服务端执行失败\n"
},
"errorMsg" : {
"type" : "string",
"description" : "错误文案\n"
},
"data" : {
"description" : "具体业务需要返回结果\n",
"$ref" : "#/definitions/StatisticsInfo"
}
}
},
"ComplaintVO" : {
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64",
"description" : "主键自增id\n"
},
"code" : {
"type" : "string",
"description" : "投诉单编号\n"
},
"state" : {
"type" : "integer",
"format" : "int32",
"description" : "投诉单状态 1:待受理,2:受理中,3、4:办理中,5、6:已办结\n"
},
"syncState" : {
"type" : "integer",
"format" : "int32",
"description" : "315平台同步状态 1:未同步, 2:同步成功 3. 已撤销\n"
},
"userName" : {
"type" : "string",
"description" : "投诉人姓名\n"
},
"userMobile" : {
"type" : "string",
"description" : "投诉人手机号码\n"
},
"userSex" : {
"type" : "boolean",
"description" : "投诉人性别:0男1女\n"
},
"userProvince" : {
"type" : "string",
"description" : "省份\n"
},
"userCity" : {
"type" : "string",
"description" : "城市\n"
},
"complainType" : {
"type" : "string",
"description" : "投诉类型\n"
},
"title" : {
"type" : "string",
"description" : "投诉标题\n"
},
"comName" : {
"type" : "string",
"description" : "企业名称(购买平台,直播平台)\n"
},
"comTel" : {
"type" : "string",
"description" : "企业电话\n"
},
"comIndustry" : {
"type" : "string",
"description" : "行业类别\n"
},
"comAddress" : {
"type" : "string",
"description" : "企业地址/直播间\n"
},
"shopName" : {
"type" : "string",
"description" : "店铺名称/网红名称\n"
},
"shopModel" : {
"type" : "string",
"description" : "店铺形式\n"
},
"tsOrigin" : {
"type" : "string",
"description" : "投诉来源\n"
},
"brand" : {
"type" : "string",
"description" : "投诉品牌\n"
},
"model" : {
"type" : "string",
"description" : "投诉产品型号\n"
},
"price" : {
"type" : "number",
"format" : "double",
"description" : "消费金额,整数位7位,小数位2位\n"
},
"appeal" : {
"type" : "string",
"description" : "诉求:退款、换货、赔款、曝光\n"
},
"content" : {
"type" : "string",
"description" : "投诉内容\n"
},
"attach" : {
"type" : "string",
"description" : "附件(图片地址);多张用英文';'隔开最多3张\n"
},
"orderNo" : {
"type" : "string",
"description" : "订单编号\n"
},
"channel" : {
"type" : "string",
"description" : "购买渠道\n"
},
"allowExposure" : {
"type" : "boolean",
"description" : "是否允许曝光\n"
},
"allowCompromise" : {
"type" : "boolean",
"description" : "是否先行和解\n"
},
"onTop" : {
"type" : "boolean",
"description" : "是否置顶,置顶的会出现在首页\n"
},
"comments" : {
"type" : "string",
"description" : "备注,补充描述\n"
},
"createTime" : {
"type" : "integer",
"format" : "int64",
"description" : "投诉创建时间\n"
},
"updateTime" : {
"type" : "integer",
"format" : "int64",
"description" : "修改时间\n"
}
}
},
"StatisticsInfo" : {
"properties" : {
"amount" : {
"type" : "integer",
"format" : "int64",
"description" : "投诉受理单量\n"
},
"percentage" : {
"type" : "number",
"format" : "double",
"description" : "办结率,百分号前面的数字\n"
}
}
}
},
"x-project-version" : "1.0-SNAPSHOT",
"x-swagger-plugin-version" : "1.6.1"
}