app.js 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '@/utils/request'
  2. // 查询【请填写功能名称】列表
  3. export function listApp(query) {
  4. return request({
  5. url: '/system/app/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询【请填写功能名称】详细
  11. export function getApp(id) {
  12. return request({
  13. url: '/system/app/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增【请填写功能名称】
  18. export function addApp(data) {
  19. return request({
  20. url: '/system/app',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改【请填写功能名称】
  26. export function updateApp(data) {
  27. return request({
  28. url: '/system/app/put',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 删除【请填写功能名称】
  34. export function delApp(id) {
  35. return request({
  36. url: '/system/app/delete/' + id,
  37. method: 'get'
  38. })
  39. }