From fbfd98f72387b567d5de150b3656f540d70c2be1 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期五, 23 七月 2021 11:14:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopGoodsService.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopGoodsService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopGoodsService.java
index 92191cb..ecf1acd 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopGoodsService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopGoodsService.java
@@ -1,6 +1,10 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
+import com.panzhihua.common.model.dtos.shop.ComShopGoodsDTO;
+import com.panzhihua.common.model.dtos.shop.PageComShopGoodsDTO;
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.common.model.vos.shop.AddShopGoodsVO;
import com.panzhihua.service_community.model.dos.ComShopGoodsDO;
/**
@@ -10,4 +14,54 @@
*/
public interface ComShopGoodsService extends IService<ComShopGoodsDO> {
+ /**
+ * 分页查询商品列表
+ * @param comShopGoodsDTO 请求参数
+ * @return 商品列表
+ */
+ R pageShopGoods(ComShopGoodsDTO comShopGoodsDTO);
+
+ /**
+ * 根据商品id查询商品信息
+ * @param goodsId 商品id
+ * @return 商品信息
+ */
+ R shopGoodsDetail(Long goodsId);
+
+ /**
+ * 添加商品
+ * @param addShopGoodsVO
+ * @return
+ */
+ R saveShopGoods(AddShopGoodsVO addShopGoodsVO);
+
+ /**
+ * 商品列表-分页查询
+ * @param pageComShopGoodsDTO 查询参数
+ * @return PageShopStoreVO
+ */
+ R pageGoodsList(PageComShopGoodsDTO pageComShopGoodsDTO);
+
+ /**
+ * 编辑商品
+ *
+ * @param id 商铺ID
+ * @param addShopGoodsVO
+ * @return
+ */
+ R editShopGoods(Long id, AddShopGoodsVO addShopGoodsVO);
+
+ /**
+ * 删除商品
+ * @param id
+ * @return
+ */
+ R deleteShopGoods(Long[] id);
+
+ /**
+ * 修改商品状态
+ * @param id
+ * @return
+ */
+ R changeStatus(Long id,Integer status);
}
--
Gitblit v1.7.1