basic.js 672 B

123456789101112131415161718192021222324252627282930313233
  1. import request from '@/utils/request'
  2. // 新增分类特殊属性
  3. export function add(data) {
  4. return request({
  5. url: `/system/special/add`,
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 通过分类编码查询特殊属性信息
  11. export function getDetail(code) {
  12. return request({
  13. url: `/system/special/detail/${code}`,
  14. method: 'get',
  15. })
  16. }
  17. // 删除分类特殊属性
  18. export function delSpecial(data) {
  19. return request({
  20. url: `/system/special/delete`,
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改分类特殊属性
  26. export function editSpecial(data) {
  27. return request({
  28. url: `/system/special/edit`,
  29. method: 'post',
  30. data: data
  31. })
  32. }