mallCategory.js 980 Bytes
import request from '@/utils/request'

// ========== 会员商城-商品分类接口 ==========

// 新增分类
export function createMallCategory(data) {
  return request({
    url: '/api/Extend/LqMallCategory/Create',
    method: 'post',
    data
  })
}

// 编辑分类
export function updateMallCategory(data) {
  return request({
    url: '/api/Extend/LqMallCategory/Update',
    method: 'put',
    data
  })
}

// 删除分类(逻辑删除)
export function cancelMallCategory(id) {
  return request({
    url: `/api/Extend/LqMallCategory/Cancel/${id}`,
    method: 'put'
  })
}

// 分类分页列表(管理端)
export function getMallCategoryList(data) {
  return request({
    url: '/api/Extend/LqMallCategory/GetList',
    method: 'get',
    data
  })
}

// 分类下拉列表(启用分类,供商品表单选择)
export function getMallCategorySelectList() {
  return request({
    url: '/api/Extend/LqMallCategory/GetSelectList',
    method: 'get'
  })
}