园林绿化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
813 B

  1. import request from '@/utils/request'
  2. // 查询空间资源管理列表
  3. export function listResource(query) {
  4. return request({
  5. url: '/system/resource/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询空间资源管理详细
  11. export function getResource(id) {
  12. return request({
  13. url: '/system/resource/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增空间资源管理
  18. export function addResource(data) {
  19. return request({
  20. url: '/system/resource',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改空间资源管理
  26. export function updateResource(data) {
  27. return request({
  28. url: '/system/resource',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除空间资源管理
  34. export function delResource(id) {
  35. return request({
  36. url: '/system/resource/' + id,
  37. method: 'delete'
  38. })
  39. }