wmwkalbum.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (c) 2018-2025, hnqz All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: hnqz
  16. */
  17. import request from '@/router/axios'
  18. export function fetchList(query) {
  19. return request({
  20. url: '/admin/wmwkalbum/page',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. export function uploadImg(obj,headers,formData) {
  26. return request({
  27. method: 'post',
  28. url: "/admin/sys-file/upload",
  29. async: false,
  30. headers:headers,
  31. processData: false,
  32. contentType: false,
  33. data:formData
  34. })
  35. }
  36. export function addObj(obj) {
  37. return request({
  38. url: '/admin/wmwkalbum',
  39. method: 'post',
  40. data: obj
  41. })
  42. }
  43. export function getObj(id) {
  44. return request({
  45. url: '/admin/wmwkalbum/' + id,
  46. method: 'get'
  47. })
  48. }
  49. export function delObj(id) {
  50. return request({
  51. url: '/admin/wmwkalbum/' + id,
  52. method: 'delete'
  53. })
  54. }
  55. export function putObj(obj) {
  56. return request({
  57. url: '/admin/wmwkalbum',
  58. method: 'put',
  59. data: obj
  60. })
  61. }