/* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 * @LastEditTime: 2023-11-04 10:42:50 * @LastEditors: DY * @Description: */ import request from '@/utils/request' // 创建产品 export function createCoreProduct(data) { return request({ url: '/base/core-product/create', method: 'post', data: data }) } // 更新产品 export function updateCoreProduct(data) { return request({ url: '/base/core-product/update', method: 'put', data: data }) } // 删除产品 export function deleteCoreProduct(id) { return request({ url: '/base/core-product/delete?id=' + id, method: 'delete' }) } // 获得产品 export function getCoreProduct(id) { return request({ url: '/base/core-product/get?id=' + id, method: 'get' }) } // 获得产品code export function getCode() { return request({ url: '/base/core-product/getCode', method: 'get' }) } // 获得产品分页 export function getCoreProductPage(query) { return request({ url: '/base/core-product/page', method: 'get', params: query }) } // 获得所有列表 export function getCoreProductList(query) { return request({ url: '/base/core-product/listAll', method: 'get', params: query }) } // 创建产品属性 export function createCoreProductAttr(data) { return request({ url: '/base/core-product-attr/create', method: 'post', data: data }) } // 更新产品属性 export function updateCoreProductAttr(data) { return request({ url: '/base/core-product-attr/update', method: 'put', data: data }) } // 删除产品属性 export function deleteCoreProductAttr(id) { return request({ url: '/base/core-product-attr/delete?id=' + id, method: 'delete' }) } // 获得产品属性 export function getCoreProductAttr(id) { return request({ url: '/base/core-product-attr/get?id=' + id, method: 'get' }) } // 获得产品属性分页 export function getCoreProductAttrPage(query) { return request({ url: '/base/core-product-attr/page', method: 'get', params: query }) }