12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- const { request } = require('../../../api/request')
- /**
- * 商品添加
- * @param obj
- * @returns {Promise<*>}
- */
- export const postAddProduct = (obj) => request({
- url: '/api/shop/product/add',
- method: 'POST',
- data: {
- ...obj
- },
- showLoading: true
- })
- /**
- * 商品编辑
- * @param obj
- * @returns {Promise<*>}
- */
- export const postModifyProduct = (obj) => request({
- url: '/api/shop/product/modify',
- method: 'POST',
- data: {
- ...obj
- },
- showLoading: true
- })
- /**
- * 商品详情
- * @param id 商品ID
- * @returns {Promise<*>}
- */
- export const getProductDetail = (id) => request({
- url: '/api/shop/product/detail',
- method: 'POST',
- data: {
- id: id
- },
- showLoading: true
- })
|