router.js 1.3 KB

12345678910111213141516171819202122232425
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. // 配置
  8. router.post('/api/integral/integralConfig/create', controller.integralConfig.create);
  9. router.post('/api/integral/integralConfig/update', controller.integralConfig.update);
  10. router.delete('/api/integral/integralConfig/delete/:id', controller.integralConfig.delete);
  11. router.get('/api/integral/integralConfig/query', controller.integralConfig.query);
  12. // 积分日志
  13. router.post('/api/integral/integralLog/create', controller.integralLog.create);
  14. router.post('/api/integral/integralLog/update', controller.integralLog.update);
  15. router.delete('/api/integral/integralLog/delete/:id', controller.integralLog.delete);
  16. router.get('/api/integral/integralLog/query', controller.integralLog.query);
  17. // 积分管理
  18. router.post('/api/integral/integral/create', controller.integral.create);
  19. router.post('/api/integral/integral/update', controller.integral.update);
  20. router.delete('/api/integral/integral/delete/:id', controller.integral.delete);
  21. router.get('/api/integral/integral/query', controller.integral.query);
  22. router.post('/api/integral/integral/increase', controller.integral.increase);
  23. router.post('/api/integral/integral/reduce', controller.integral.reduce);
  24. };