傅行帆 5 gadus atpakaļ
vecāks
revīzija
29ba502bad
1 mainītis faili ar 52 papildinājumiem un 3 dzēšanām
  1. 52
    3
      src/services/apis.js

+ 52
- 3
src/services/apis.js Parādīt failu

@@ -15,11 +15,13 @@ export default {
15 15
     current: {
16 16
       method: 'GET',
17 17
       url: `${prefix}/taUser/current`,
18
+      action: 'admin.taUser.current.get',
18 19
     },
19 20
     signin: {
20 21
       method: 'POST',
21 22
       url: `${prefix}/taUser/signin`,
22
-      login: true
23
+      login: true,
24
+      action: 'admin.taUser.signin.post',
23 25
     },
24 26
     signout: {
25 27
       method: 'POST',
@@ -162,7 +164,8 @@ export default {
162 164
     },
163 165
     userCity: {
164 166
       method:'get',
165
-      url: `${prefix}/selectCityUser`
167
+      url: `${prefix}/selectCityUser`,
168
+      action: 'admin.selectCityUser.get'
166 169
     },
167 170
 
168 171
   },
@@ -170,194 +173,240 @@ export default {
170 173
       list: {
171 174
         method: 'GET',
172 175
         url: `${prefix}/iBuildingDynamicList`,
176
+        action: 'admin.iBuildingDynamicList.get',
173 177
       },
174 178
       weight: {
175 179
         method: 'PUT',
176 180
         url: `${prefix}/buildingDynamic/weight`,
181
+        action: 'admin.buildingDynamic.weight.put',
177 182
       },
178 183
       cancel: {
179 184
         method: 'PUT',
180 185
         url: `${prefix}/buildingDynamic/cancel/:id`,
186
+        action: 'admin.buildingDynamic.cancel.dynamicId.put'
181 187
       },
182 188
       send: {
183 189
         url: `${prefix}/buildingDynamic/send/:id`,
184 190
         method: 'PUT',
191
+        action: 'admin.buildingDynamic.send.dynamicId.put'
185 192
       },
186 193
       finish: {
187 194
         url: `${prefix}/buildingDynamic/finish`,
188 195
         method: 'PUT',
196
+        action: 'admin.buildingDynamic.finish.put'
189 197
       },
190 198
       details: {
191 199
         url: `${prefix}/buildingDynamic/Details`,
192 200
         method: 'GET',
201
+        action: 'admin.buildingDynamic.Details.get',
193 202
       },
194 203
       update: {
195 204
         url: `${prefix}/buildingDynamic/update`,
196 205
         method: 'PUT',
206
+        action: 'admin.buildingDynamic.update.put',
197 207
       },
198 208
       add: {
199 209
         url: `${prefix}/buildingDynamic/add`,
200 210
         method: 'POST',
211
+        action: 'admin.buildingDynamic.add.post',
201 212
       },
202 213
       poster: {
203 214
         url: `${prefix}/poster`,
204 215
         method: 'GET',
216
+        action: 'admin.poster.get',
205 217
       },
206 218
       updatePoster: {
207 219
         url: `${prefix}/poster/:id`,
208 220
         method: 'PUT',
221
+        action: 'admin.poster.id.put',
209 222
       },
210 223
       addPoster: {
211 224
         url: `${prefix}/poster`,
212 225
         method: 'POST',
226
+        action: 'admin.poster.post',
213 227
       },
214 228
       shareContent: {
215 229
         url: `${prefix}/shareContent`,
216 230
         method: 'GET',
231
+        action: 'admin.shareContent.get',
217 232
       },
218 233
       updateShareContent: {
219 234
         url: `${prefix}/shareContent/:id`,
220 235
         method: 'PUT',
236
+        action: 'admin.shareContent.id.put',
221 237
       },
222 238
       addShareContent: {
223 239
         url: `${prefix}/shareContent`,
224 240
         method: 'POST',
241
+        action: 'admin.shareContent.post',
225 242
       },
226 243
       signList: {
227 244
         url: `${prefix}/SignList`,
228 245
         method: 'GET',
246
+        action: 'admin.SignList.get',
229 247
       }
230 248
   },
231 249
   integralMall: {
232 250
     tdPointsRules: {
233 251
       url: `${prefix}/tdPointsRules`,
234 252
       method: 'GET',
253
+      action: 'admin.tdPointsRules.get',
235 254
     },
236 255
     change: {
237 256
       url: `${prefix}/tdPointsRules/change`,
238 257
       method: 'PUT',
258
+      action: 'admin.tdPointsRules.change.put',
239 259
     },
240 260
     taGoods: {
241 261
       url: `${prefix}/taGoods/:id`,
242 262
       method: 'GET',
263
+      action: 'admin.taGoods.id.get',
243 264
     },
244 265
     updateTaGoods: {
245 266
       url: `${prefix}/taGoods`,
246 267
       method: 'PUT',
268
+      action: 'admin.taGoods.put',
247 269
     },
248 270
     addTaGoods: {
249 271
       url: `${prefix}/taGoods/add`,
250 272
       method: 'POST',
273
+      action: 'admin.taGoods.add.post',
251 274
     },
252 275
     taPointsExchange: {
253 276
       url: `${prefix}/taPointsExchange`,
254
-        method: 'GET',
277
+      method: 'GET',
278
+      action: 'admin.taPointsExchange.get',
255 279
     },
256 280
     getTaGoods: {
257 281
       url: `${prefix}/taGoods`,
258 282
       method: 'GET',
283
+      action: 'admin.taGoods.get',
259 284
     },
260 285
     changeTaGoods: {
261 286
       url: `${prefix}/taGoods/change`,
262 287
       method: 'PUT',
288
+      action: 'admin.taGoods.change.put',
263 289
     },
264 290
     changeTaPointsExchange: {
265 291
       url: `${prefix}/taPointsExchange/change`,
266 292
       method: 'PUT',
293
+      action: 'admin.taPointsExchange.change.put',
267 294
     }
268 295
   },
269 296
   carsuseFigure: {
270 297
     extendContent: {
271 298
       url: `${prefix}/extendContent`,
272 299
       method: 'GET',
300
+      action: 'admin.extendContent.get',
273 301
     },
274 302
     finish: {
275 303
       url: `${prefix}/buildingDynamic/finish`,
276 304
       method: 'PUT',
305
+      action: 'admin.buildingDynamic.finish.put',
277 306
     },
278 307
     updataExtendContent: {
279 308
       url: `${prefix}/extendContent/:id`,
280 309
       method: 'PUT',
310
+      action: 'admin.extendContent.id.put',
281 311
     },
282 312
     getExtendContent: {
283 313
       url: `${prefix}/extendContent/:id`,
284 314
       method: 'GET',
315
+      action: 'admin.extendContent.id.get',
285 316
     },
286 317
     addExtendContent: {
287 318
       url: `${prefix}/extendContent`,
288 319
       method: 'POST',
320
+      action: 'admin.extendContent.post',
289 321
     }
290 322
   },
291 323
   system: {
292 324
     taPolicy: {
293 325
       url: `${prefix}/taPolicy/:id`,
294 326
       method: 'GET',
327
+      action: 'admin.taPolicy.id.get',
295 328
     },
296 329
     updateTaPolicy: {
297 330
       url: `${prefix}/taPolicy/:id`,
298 331
       method: 'PUT',
332
+      action: 'admin.taPolicy.id.put',
299 333
     },
300 334
     addTaPolicy: {
301 335
       url: `${prefix}/taPolicy`,
302 336
       method: 'POST',
337
+      action: 'admin.taPolicy.post',
303 338
     },
304 339
     getTaPolicy: {
305 340
       url: `${prefix}/taPolicy`,
306 341
       method: 'GET',
342
+      action: 'admin.taPolicy.get',
307 343
     },
308 344
     deleteTaPolicy: {
309 345
       url: `${prefix}/taPolicy/:id`,
310 346
       method: 'DELETE',
347
+      action: 'admin.taPolicy.id.delete',
311 348
     },
312 349
     tdBizEventIntention: {
313 350
       url: `${prefix}/tdBizEventIntention`,
314 351
       method: 'GET',
352
+      action: 'admin.tdBizEventIntention.get',
315 353
     },
316 354
     taBuildingIntentionAddOrUpdate: {
317 355
       url: `${prefix}/taBuildingIntentionAddOrUpdate/:id`,
318 356
       method: 'POST',
357
+      action: 'admin.taBuildingIntentionAddOrUpdate.buildingId.post',
319 358
     },
320 359
     taCustomerMessage: {
321 360
       url: `${prefix}/taCustomerMessage`,
322 361
       method: 'GET',
362
+      action: 'admin.taCustomerMessage.get',
323 363
     },
324 364
     tdReports: {
325 365
       url: `${prefix}/tdReports`,
326 366
       method: 'GET',
367
+      action: 'admin.tdReports.get',
327 368
     },
328 369
     taBuildingReports: {
329 370
       url: `${prefix}/taBuildingReports`,
330 371
       method: 'GET',
372
+      action: 'admin.taBuildingReports.get',
331 373
     },
332 374
     addTaBuildingReports: {
333 375
       url: `${prefix}/taBuildingReport/add`,
334 376
       method: 'POST',
377
+      action: 'admin.taBuildingReport.add.post',
335 378
     }
336 379
   },
337 380
   staff: {
338 381
     taUser: {
339 382
       url: `${prefix}/taUser`,
340 383
       method: 'GET',
384
+      action: 'admin.taUser.get',
341 385
     },
342 386
     taTags: {
343 387
       url: `${prefix}/taTags`,
344 388
       method: 'GET',
389
+      action: 'admin.taTags.get',
345 390
     },
346 391
     getTaUser: {
347 392
       url: `${prefix}/taUser/:id`,
348 393
       method: 'GET',
394
+      action: 'admin.taUser.id.get',
349 395
     },
350 396
     updateTaUser: {
351 397
       url: `${prefix}/taUser/:id`,
352 398
       method: 'PUT',
399
+      action: 'admin.taUser.id.put',
353 400
     },
354 401
     addTaUser: {
355 402
       url: `${prefix}/taUser`,
356 403
       method: 'POST',
404
+      action: 'admin.taUser.post',
357 405
     },
358 406
     change: {
359 407
       url: `${prefix}/turn/taUser/:id/:type`,
360 408
       method: 'PUT',
409
+      action: 'admin.turn.taUser.put',
361 410
     }
362 411
   }
363 412
   // indexEcharts:{