74 lines
1.3 KiB
JavaScript
74 lines
1.3 KiB
JavaScript
import http from "../../utils/http";
|
|
import config from "../../config/config";
|
|
|
|
/** 获取规格列表
|
|
*
|
|
* @author Seven
|
|
* @data 2025-7-12
|
|
* @params {
|
|
* pageNum
|
|
* pageSize
|
|
* }
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/api/admin/shop/shop-base-product-spec/list
|
|
*/
|
|
|
|
export function GetSpecificationList(params) {
|
|
return http({
|
|
url: "/shop/shop-base-product-spec/list",
|
|
method: "get",
|
|
params,
|
|
baseURL: config.adminApi,
|
|
});
|
|
}
|
|
|
|
/** 编辑规格
|
|
*
|
|
* @author Seven
|
|
* @data 2025-7-12
|
|
* @params {
|
|
* spec_buildin
|
|
store_id
|
|
spec_order
|
|
specItems
|
|
spec_id
|
|
spec_remark
|
|
store_name
|
|
spec_format
|
|
text
|
|
spec_name
|
|
spec_category_id
|
|
* }
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/api/admin/shop/shop-base-product-spec/edit
|
|
*/
|
|
|
|
export function UpdateSpecification(params) {
|
|
return http({
|
|
url: "/shop/shop-base-product-spec/edit",
|
|
method: "post",
|
|
params,
|
|
baseURL: config.adminApi,
|
|
});
|
|
}
|
|
|
|
/** 删除规格
|
|
*
|
|
* @author Seven
|
|
* @data 2025-7-12
|
|
* @params {
|
|
* spec_ids
|
|
* }
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/api/admin/shop/shop-base-product-spec/delete
|
|
*/
|
|
|
|
export function DelectSpecification(params) {
|
|
return http({
|
|
url: "/shop/shop-base-product-spec/delete",
|
|
method: "post",
|
|
params,
|
|
baseURL: config.adminApi,
|
|
});
|
|
}
|