apiAuthority.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-12-21 09:22:04
  4. * @LastEditTime: 2022-03-29 18:17:52
  5. * @LastEditors: your name
  6. * @Description: 权限项管理
  7. * @FilePath: \Foshan4A2.0\src\api\apiAuthority.js
  8. */
  9. import request from '@/utils/request'
  10. //权限树查询
  11. export function GetAuthTree (params) {
  12. return request({
  13. url: '/api/fs4a/GetAuthTree/v1',
  14. method: 'post',
  15. data: params,
  16. proxy: true
  17. })
  18. }
  19. //应用新增保存
  20. export function SaveApp (params) {
  21. return request({
  22. url: '/api/fs4a/SaveApp/v1',
  23. method: 'post',
  24. data: params,
  25. proxy: true
  26. })
  27. }
  28. //应用详情查询
  29. export function GetAppDetails (params) {
  30. return request({
  31. url: '/api/fs4a/GetAppDetails/v1',
  32. method: 'post',
  33. data: params,
  34. proxy: true
  35. })
  36. }
  37. //应用修改保存
  38. export function EditApp (params) {
  39. return request({
  40. url: '/api/fs4a/EditApp/v1',
  41. method: 'post',
  42. data: params,
  43. proxy: true
  44. })
  45. }
  46. //应用状态变更
  47. export function UpdateAppStatus (params) {
  48. return request({
  49. url: '/api/fs4a/UpdateAppStatus/v1',
  50. method: 'post',
  51. data: params,
  52. msg: '应用状态变更',
  53. proxy: true
  54. })
  55. }
  56. //应用删除
  57. export function DeleteApp (params) {
  58. return request({
  59. url: '/api/fs4a/DeleteApp/v1',
  60. method: 'post',
  61. data: params,
  62. proxy: true
  63. })
  64. }
  65. //权限项修改保存
  66. export function EditAuth (params) {
  67. return request({
  68. url: '/api/fs4a/EditAuth/v1',
  69. method: 'post',
  70. data: params,
  71. proxy: true
  72. })
  73. }
  74. //权限详情查询
  75. export function GetAuthDetails (params) {
  76. return request({
  77. url: '/api/fs4a/GetAuthDetails/v1',
  78. method: 'post',
  79. data: params,
  80. proxy: true
  81. })
  82. }
  83. //根据权限获取授权规则
  84. export function GetAuthTo (params) {
  85. return request({
  86. url: '/api/fs4a/GetAuthTo/v1',
  87. method: 'post',
  88. data: params,
  89. proxy: true
  90. })
  91. }
  92. //权限项新增保存
  93. export function SaveAuth (params) {
  94. return request({
  95. url: '/api/fs4a/SaveAuth/v1',
  96. method: 'post',
  97. data: params,
  98. proxy: true
  99. })
  100. }
  101. //权限项删除
  102. export function DeleteAuth (params) {
  103. return request({
  104. url: '/api/fs4a/DeleteAuth/v1',
  105. method: 'post',
  106. data: params,
  107. proxy: true
  108. })
  109. }
  110. //权限状态变更
  111. export function UpdateAuthStatus (params) {
  112. return request({
  113. url: '/api/fs4a/UpdateAuthStatus/v1',
  114. method: 'post',
  115. data: params,
  116. msg: '权限状态变更',
  117. proxy: true
  118. })
  119. }
  120. //角色新增保存
  121. export function SaveRole (params) {
  122. return request({
  123. url: '/api/fs4a/SaveRole/v1',
  124. method: 'post',
  125. data: params,
  126. proxy: true
  127. })
  128. }
  129. //角色列表查询
  130. export function QueryRole (params) {
  131. return request({
  132. url: '/api/fs4a/QueryRole/v1',
  133. method: 'post',
  134. data: params,
  135. proxy: true
  136. })
  137. }
  138. //账号列表查询
  139. export function GetUserList (params) {
  140. return request({
  141. url: '/api/fs4a/GetUserList/v1',
  142. method: 'post',
  143. data: params,
  144. proxy: true
  145. })
  146. }
  147. //角色明细查询
  148. export function RoleDetails (params) {
  149. return request({
  150. url: '/api/fs4a/RoleDetails/v1',
  151. method: 'post',
  152. data: params,
  153. proxy: true
  154. })
  155. }
  156. //角色权限列表
  157. export function RoleAuths (params) {
  158. return request({
  159. url: '/api/fs4a/RoleAuths/v1',
  160. method: 'post',
  161. data: params,
  162. proxy: true
  163. })
  164. }
  165. //角色删除
  166. export function DeleteRole (params) {
  167. return request({
  168. url: '/api/fs4a/DeleteRole/v1',
  169. method: 'post',
  170. data: params,
  171. proxy: true
  172. })
  173. }
  174. //角色编辑保存
  175. export function EditRole (params) {
  176. return request({
  177. url: '/api/fs4a/EditRole/v1',
  178. method: 'post',
  179. data: params,
  180. proxy: true
  181. })
  182. }
  183. //角色状态变更
  184. export function UpdateStatus (params) {
  185. return request({
  186. url: '/api/fs4a/UpdateStatus/v1',
  187. method: 'post',
  188. data: params,
  189. proxy: true
  190. })
  191. }