From eb80b83a3d4a0b59325e90405dc6c687c2904d3a Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期三, 05 一月 2022 14:45:16 +0800 Subject: [PATCH] 商家后台相关代码提交 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java index 3138ba3..6256ceb 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/McsProductService.java @@ -1,6 +1,10 @@ package com.panzhihua.service_community.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsProductDTO; +import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsProductDTO; +import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForProductDTO; +import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.entity.McsProduct; /** @@ -11,4 +15,39 @@ */ public interface McsProductService extends IService<McsProduct> { + /** + * 新增产品信息 + * @param mcsProductDTO + * @return + */ + R addMcsProduct(McsProductDTO mcsProductDTO); + + /** + * 编辑产品信息 + * @param mcsProductDTO + * @return + */ + R putMcsProduct(McsProductDTO mcsProductDTO); + + /** + * 删除产品信息 + * @param productId + * @param userId + * @return + */ + R deleteMcsProduct(Long productId, Long userId); + + /** + * 上架/下架产品信息 + * @param setShelfForProductDTO + * @return + */ + R setShelfForMcsProduct(SetShelfForProductDTO setShelfForProductDTO); + + /** + * 分页查询产品信息 + * @param pageMcsProductDTO + * @return + */ + R pageMcsProduct(PageMcsProductDTO pageMcsProductDTO); } -- Gitblit v1.7.1