1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import request from '@/utils/request'
- // 查询商品列表
- export function listStoreProduct(query) {
- return request({
- url: '/store/storeProduct/list',
- method: 'get',
- params: query
- })
- }
- // 查询商品详细
- export function getStoreProduct(productId) {
- return request({
- url: '/store/storeProduct/' + productId,
- method: 'get'
- })
- }
-
- export function addOrEdit(data) {
- return request({
- url: '/store/storeProduct/addOrEdit',
- method: 'post',
- data: data
- })
- }
-
- // 删除商品
- export function delStoreProduct(productId) {
- return request({
- url: '/store/storeProduct/' + productId,
- method: 'delete'
- })
- }
- // 导出商品
- export function exportStoreProduct(query) {
- return request({
- url: '/store/storeProduct/export',
- method: 'get',
- params: query
- })
- }
- export function genFormatAttr(productId,json) {
- return request({
- url: '/store/storeProduct/genFormatAttr/'+productId,
- method: 'post',
- data: json
- })
- }
- export function getStoreProductAttrValueList(query) {
- return request({
- url: '/store/storeProduct/getStoreProductAttrValueList',
- method: 'get',
- params: query
- })
- }
- export function getStoreTuiProductAttrValueList(query) {
- return request({
- url: '/store/storeProduct/getStoreTuiProductAttrValueList',
- method: 'get',
- params: query
- })
- }
|