Ver Fonte

添加网关会员配置

asd123a20 há 3 anos atrás
pai
commit
7aed2eddb7

+ 1 - 1
service-gateway/config/clientUser.js

@@ -1,7 +1,7 @@
 'use strict';
 
 module.exports = [
-  // 商城
+  // 客户端用户
   {
     url: '/api/clientUser/user/create',
     jwt: true,

+ 54 - 0
service-gateway/config/clientvip.js

@@ -0,0 +1,54 @@
+'use strict';
+
+module.exports = [
+  // 客户端vip
+  {
+    url: '/api/clientVip/vip/create',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/vip/update',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/vip/delete/:id',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/vip/query',
+    jwt: false,
+    issuer: [ 'naf' ],
+    log: false,
+  },
+  // vip权限
+  {
+    url: '/api/clientVip/power/create',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/power/update',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/power/delete/:id',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/clientVip/power/query',
+    jwt: false,
+    issuer: [ 'naf' ],
+    log: false,
+  },
+];

+ 1 - 1
service-gateway/config/config.default.js

@@ -57,7 +57,7 @@ module.exports = appInfo => {
     org: 'http://127.0.0.1:9011',
     media: 'http://127.0.0.1:9012',
     clientUser: 'http://127.0.0.1:9013',
-    clientvip: 'http://127.0.0.1:9014',
+    clientVip: 'http://127.0.0.1:9014',
     activity: 'http://127.0.0.1:9015',
     importExport: 'http://127.0.0.1:9016',
     reader: 'http://127.0.0.1:9017',