sourceMaterialManage.js 645 B

1234567891011121314151617181920212223242526272829303132
  1. import request from "@/utils/request";
  2. // 查询素材库列表
  3. export function getLibraryList(params) {
  4. return request({
  5. url: "/business/library/list",
  6. method: "get",
  7. params,
  8. });
  9. }
  10. // 素材详情
  11. export function getLibraryDetail(materialId) {
  12. return request({
  13. url: `/business/library/${materialId}`,
  14. method: "get",
  15. });
  16. }
  17. // 新增素材
  18. export function libraryAdd(data) {
  19. return request({
  20. url: "/business/library",
  21. method: "post",
  22. data,
  23. });
  24. }
  25. // 删除素材
  26. export function libraryDelete(materialIds) {
  27. return request({
  28. url: `/business/library/${materialIds}`,
  29. method: "delete",
  30. });
  31. }