feate:新增套餐管理
This commit is contained in:
@@ -144,4 +144,86 @@ export const updateProductParameterValue = (data) => {
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**---------------------------------- */
|
||||
/**商品套餐管理 */
|
||||
|
||||
/**获取商品套餐列表 */
|
||||
export const getProductPlanList = (params) => {
|
||||
return http2.get('/api/v1/admin/good/plan/list', {params: params})
|
||||
}
|
||||
/**获取商品套餐详情 */
|
||||
export const getProductPlanDetail = (params) => {
|
||||
return http2.get('/api/v1/admin/good/plan/detail', {params: params})
|
||||
}
|
||||
/**创建商品套餐 */
|
||||
export const createProductPlan = (data) => {
|
||||
return http2.post('/api/v1/admin/good/plan/create', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
/**更新商品套餐 */
|
||||
export const updateProductPlan = (data) => {
|
||||
return http2.post('/api/v1/admin/good/plan/update', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
/**删除商品套餐 */
|
||||
export const deleteProductPlan = (params) => {
|
||||
return http2.delete('/api/v1/admin/good/plan/delete', {params: params})
|
||||
}
|
||||
/**禁用商品套餐 */
|
||||
export const disableProductPlan = (data) => {
|
||||
return http2.post('/api/v1/admin/good/plan/disable', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
/**启用商品套餐 */
|
||||
export const enableProductPlan = (data) => {
|
||||
return http2.post('/api/v1/admin/good/plan/enable', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**---------------------------------- */
|
||||
/**商品分组标签管理 */
|
||||
|
||||
/**获取商品分组标签列表 */
|
||||
export const getProductGroupTagList = (params) => {
|
||||
return http2.get('/api/v1/admin/good/group_tag/list', {params: params})
|
||||
}
|
||||
/**获取商品分组标签详情 */
|
||||
export const getProductGroupTagDetail = (params) => {
|
||||
return http2.get('/api/v1/admin/good/group_tag/detail', {params: params})
|
||||
}
|
||||
/**创建商品分组标签 */
|
||||
export const createProductGroupTag = (data) => {
|
||||
return http2.post('/api/v1/admin/good/group_tag/create', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
/**更新商品分组标签 */
|
||||
export const updateProductGroupTag = (data) => {
|
||||
return http2.post('/api/v1/admin/good/group_tag/update', data,{
|
||||
headers:{
|
||||
'Content-Type':'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
/**删除商品分组标签 */
|
||||
export const deleteProductGroupTag = (params) => {
|
||||
return http2.delete('/api/v1/admin/good/group_tag/delete', {params: params})
|
||||
}
|
||||
Reference in New Issue
Block a user