import request from '@/utils/request'

// 查询素材分组列表
export function listMaterialGroup(query) {
  return request({
    url: '/store/materialGroup/list',
    method: 'get',
    params: query
  })
}
export function getAllMaterialGroup(query) {
  return request({
    url: '/store/materialGroup/getAllList',
    method: 'get',
    params: query
  })
}


// 查询素材分组详细
export function getMaterialGroup(groupId) {
  return request({
    url: '/store/materialGroup/' + groupId,
    method: 'get'
  })
}

// 新增素材分组
export function addMaterialGroup(data) {
  return request({
    url: '/store/materialGroup',
    method: 'post',
    data: data
  })
}

// 修改素材分组
export function updateMaterialGroup(data) {
  return request({
    url: '/store/materialGroup',
    method: 'put',
    data: data
  })
}

// 删除素材分组
export function delMaterialGroup(groupId) {
  return request({
    url: '/store/materialGroup/' + groupId,
    method: 'delete'
  })
}

// 导出素材分组
export function exportMaterialGroup(query) {
  return request({
    url: '/store/materialGroup/export',
    method: 'get',
    params: query
  })
}