naf.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. 'use strict';
  2. module.exports = [
  3. // 用户
  4. {
  5. url: '/api/naf/adminUser/create',
  6. jwt: true,
  7. issuer: [ 'naf' ],
  8. log: true,
  9. },
  10. {
  11. url: '/api/naf/adminUser/update',
  12. jwt: true,
  13. issuer: [ 'naf' ],
  14. log: true,
  15. },
  16. {
  17. url: '/api/naf/adminUser/delete/:id',
  18. jwt: true,
  19. issuer: [ 'naf' ],
  20. log: true,
  21. },
  22. {
  23. url: '/api/naf/adminUser/query',
  24. jwt: false,
  25. issuer: [ 'naf' ],
  26. log: false,
  27. },
  28. {
  29. url: '/api/naf/adminUser/updatePwd',
  30. jwt: true,
  31. issuer: [ 'naf' ],
  32. log: true,
  33. },
  34. // 角色
  35. {
  36. url: '/api/naf/role/create',
  37. jwt: true,
  38. issuer: [ 'naf' ],
  39. log: true,
  40. },
  41. {
  42. url: '/api/naf/role/update',
  43. jwt: true,
  44. issuer: [ 'naf' ],
  45. log: true,
  46. },
  47. {
  48. url: '/api/naf/role/delete/:id',
  49. jwt: true,
  50. issuer: [ 'naf' ],
  51. log: true,
  52. },
  53. {
  54. url: '/api/naf/role/query',
  55. jwt: false,
  56. issuer: [ 'naf' ],
  57. log: false,
  58. },
  59. // 菜单
  60. {
  61. url: '/api/naf/adminMenu/queryUserMenu',
  62. jwt: true,
  63. issuer: [ 'naf' ],
  64. log: false,
  65. },
  66. {
  67. url: '/api/naf/adminMenu/query',
  68. jwt: false,
  69. issuer: [ 'naf' ],
  70. log: false,
  71. },
  72. // 用户角色
  73. {
  74. url: '/api/naf/userBindRole/bind',
  75. jwt: true,
  76. issuer: [ 'naf' ],
  77. log: true,
  78. },
  79. {
  80. url: '/api/naf/userBindRole/unbind',
  81. jwt: true,
  82. issuer: [ 'naf' ],
  83. log: true,
  84. },
  85. {
  86. url: '/api/naf/userBindRole/queryBind',
  87. jwt: true,
  88. issuer: [ 'naf' ],
  89. log: false,
  90. },
  91. {
  92. url: '/api/naf/userBindRole/queryRole',
  93. jwt: true,
  94. issuer: [ 'naf' ],
  95. log: false,
  96. },
  97. {
  98. url: '/api/naf/userBindRole/batchBind',
  99. jwt: true,
  100. issuer: [ 'naf' ],
  101. log: true,
  102. },
  103. {
  104. url: '/api/naf/userBindRole/batchUnBind',
  105. jwt: true,
  106. issuer: [ 'naf' ],
  107. log: true,
  108. },
  109. // 角色菜单
  110. {
  111. url: '/api/naf/roleBindMenu/bind',
  112. jwt: true,
  113. issuer: [ 'naf' ],
  114. log: true,
  115. },
  116. {
  117. url: '/api/naf/roleBindMenu/unbind',
  118. jwt: true,
  119. issuer: [ 'naf' ],
  120. log: true,
  121. },
  122. {
  123. url: '/api/naf/roleBindMenu/queryBind',
  124. jwt: true,
  125. issuer: [ 'naf' ],
  126. log: false,
  127. },
  128. {
  129. url: '/api/naf/roleBindMenu/queryRole',
  130. jwt: true,
  131. issuer: [ 'naf' ],
  132. log: false,
  133. },
  134. {
  135. url: '/api/naf/roleBindMenu/batchBind',
  136. jwt: true,
  137. issuer: [ 'naf' ],
  138. log: true,
  139. },
  140. {
  141. url: '/api/naf/roleBindMenu/batchUnBind',
  142. jwt: true,
  143. issuer: [ 'naf' ],
  144. log: true,
  145. },
  146. ];