'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; // vip router.post('/api/clientVip/vip/create', controller.vip.create); router.post('/api/clientVip/vip/update', controller.vip.update); router.post('/api/clientVip/vip/proceed', controller.vip.proceed); router.delete('/api/clientVip/vip/delete/:id', controller.vip.delete); router.get('/api/clientVip/vip/query', controller.vip.query); // 权限 router.post('/api/clientVip/power/create', controller.power.create); router.post('/api/clientVip/power/update', controller.power.update); router.delete('/api/clientVip/power/delete/:id', controller.power.delete); router.get('/api/clientVip/power/query', controller.power.query); };