package com.panzhihua.service_community.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.panzhihua.common.model.dtos.community.convenient.ConvenientProductDTO;
|
import com.panzhihua.common.model.dtos.community.convenient.DeleteConvenientProductDTO;
|
import com.panzhihua.common.model.dtos.community.convenient.OnShelfOrOffShelfProductDTO;
|
import com.panzhihua.common.model.dtos.community.convenient.PageConvenientProductDTO;
|
import com.panzhihua.common.model.dtos.community.convenient.PageSearchDTO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_community.model.dos.ConvenientProductDO;
|
|
/**
|
* @title: ConvenientProductService
|
* @projectName: 成都呐喊信息技术有限公司-智慧社区项目
|
* @description: 便民服务商家后台产品服务类
|
* @author: hans
|
* @date: 2021/09/21 21:02
|
*/
|
public interface ConvenientProductService extends IService<ConvenientProductDO> {
|
|
/**
|
* 便民服务商家后台新增产品
|
* @param convenientProductDTO
|
* @return
|
*/
|
R addProduct(ConvenientProductDTO convenientProductDTO);
|
|
/**
|
* 便民服务商家后台编辑产品
|
* @param convenientProductDTO
|
* @return
|
*/
|
R putProduct(ConvenientProductDTO convenientProductDTO);
|
|
/**
|
* 便民服务商家后台获取产品详情
|
* @param productId
|
* @return
|
*/
|
R getProduct(Long productId);
|
|
/**
|
* 便民服务商家后台分页获取产品信息
|
* @param pageConvenientProductDTO
|
* @return
|
*/
|
R pageProduct(PageConvenientProductDTO pageConvenientProductDTO);
|
|
/**
|
* 便民服务商家后台删除产品信息
|
* @param deleteConvenientProductDTO
|
* @return
|
*/
|
R deleteProduct(DeleteConvenientProductDTO deleteConvenientProductDTO);
|
|
/**
|
* 便民服务商家后台上架/下架产品
|
* @param onShelfOrOffShelfProductDTO
|
* @return
|
*/
|
R onShelfOrOffShelfProduct(OnShelfOrOffShelfProductDTO onShelfOrOffShelfProductDTO);
|
|
/**
|
* 小程序获取商家产品
|
* @param merchantId
|
* @return
|
*/
|
R getMerchantProduct(Long merchantId);
|
|
/**
|
* 搜索商品信息
|
* @param pageSearchDTO
|
* @return
|
*/
|
R pageSearchProduct(PageSearchDTO pageSearchDTO);
|
|
/**
|
* 增加产品浏览量
|
* @param productId
|
* @return
|
*/
|
R incrProductView(Long productId);
|
|
/**
|
* 获取商家上下架产品数量
|
* @param merchantId
|
* @return
|
*/
|
R getProductShelfNum(Long merchantId);
|
}
|