Blame view

antis-ncc-admin/src/api/extend/mallCategory.js 980 Bytes
e1dcb3a0   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  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'
    })
  }