1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import request from '@/utils/request'
- // 批量通过内容
- export function handleUpDateOKShops(shopsId,data) {
- return request({
- url: '/goods/goods/okshops/' + shopsId,
- method: 'post',
- data: data
- })
- }
- // 查询商品信息列表
- export function listGoods(query) {
- return request({
- url: '/goods/goods/index/list',
- method: 'get',
- params: query
- })
- }
- // 查询商品信息详细
- export function getGoods(goodsId) {
- return request({
- url: '/goods/goods/index/' + goodsId,
- method: 'get'
- })
- }
- // 新增商品信息
- export function addGoods(data) {
- return request({
- url: '/goods/goods/index',
- method: 'post',
- data: data
- })
- }
- // 修改商品信息
- export function updateGoods(data) {
- return request({
- url: '/goods/goods',
- method: 'put',
- data: data
- })
- }
- // 删除商品信息
- export function delGoods(goodsId) {
- return request({
- url: '/goods/goods/' + goodsId,
- method: 'delete'
- })
- }
- // 导出商品信息
- export function exportGoods(query) {
- return request({
- url: '/goods/goods/index/export',
- method: 'get',
- params: query
- })
- }
|