|
@@ -0,0 +1,41 @@
|
|
|
+import service from '@/utils/request'
|
|
|
+// .................................商品栏
|
|
|
+// 查询所有商品
|
|
|
+export const queryAllCommodity = () => {
|
|
|
+ return service({
|
|
|
+ url: '/commodity/queryAllCommodity',
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 查询商品列表
|
|
|
+export const queryCommodityList = () => {
|
|
|
+ return service({
|
|
|
+ url: '/commodity/queryCommodityList',
|
|
|
+ method: 'post'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 新增商品
|
|
|
+export const createCommodity = () => {
|
|
|
+ return service({
|
|
|
+ url: '/commodity/createCommodity',
|
|
|
+ method: 'post'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 修改商品
|
|
|
+export const updateCommodity = () => {
|
|
|
+ return service({
|
|
|
+ url: '/commodity/updateCommodity',
|
|
|
+ method: 'put'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 删除商品
|
|
|
+export const deleteCommodity = () => {
|
|
|
+ return service({
|
|
|
+ url: '/commodity/deleteCommodity',
|
|
|
+ method: 'delete'
|
|
|
+ })
|
|
|
+}
|