flower.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 平台花材列表
  4. */
  5. export const getPlatformFlowerListApi = async data => {
  6. return https.get("/item/platform-item", data);
  7. };
  8. /** *
  9. * 花材列表
  10. */
  11. export const getFlowerListApi = async data => {
  12. return https.get("/item/list", data);
  13. };
  14. /** *
  15. * 删除花材
  16. */
  17. export const deleteFlowerApi = async id => {
  18. return https.get("/item/delete", { id });
  19. };
  20. /** *
  21. * 修改花材
  22. */
  23. export const updateFlowerApi = async data => {
  24. return https.post("/item/update", data);
  25. };
  26. /** *
  27. * 新增花材
  28. */
  29. export const addFlowerApi = async data => {
  30. return https.post("/item/add", data);
  31. };
  32. /** *
  33. * 花材分类列表
  34. */
  35. export const getFlowerCategoryListApi = async data => {
  36. return https.get("/item-class/list", data);
  37. };
  38. /** *
  39. * 删除花材分类
  40. */
  41. export const deleteFlowerCategoryApi = async id => {
  42. return https.get("/item-class/delete", { id });
  43. };
  44. /** *
  45. * 修改花材分类
  46. */
  47. export const updateFlowerCategoryApi = async data => {
  48. return https.post("/item-class/update", data);
  49. };
  50. /** *
  51. * 新增花材分类
  52. */
  53. export const addFlowerCategoryApi = async data => {
  54. return https.post("/item-class/add", data);
  55. };