|
|
|
import request from '@/utils/request'
|
|
|
|
var service_name = 'oil-mall'
|
|
|
|
export default {
|
|
|
|
brandGetByPage() {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductBrands/getByPage`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getAllAttributesType() {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributesType/getAllAttributesType`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getClassificationTree() {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductClassification/getClassificationTree`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
classifySave(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductClassification/save`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
classifyUpdate(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductClassification/update`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
classifyGetByPage(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductClassification/getByPage`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
typeFindByPage(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributesType/getByPage`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getByPage(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributes/getByPage`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getAttrList(id) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributes/get/${id}`,
|
|
|
|
method: 'GET',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
delete(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributes/delete`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
classifyDelete(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductClassification/delete`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
typeSave(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributesType/save`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
save(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributes/save`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
typeUpdate(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributes/update`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
update(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributesType/update`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
typeDelete(page) {
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/mallProductAttributesType/delete`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|