puhanshu
2021-09-22 15c1d716e6a89b38e6af36b62fc372b93779df01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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.PageMerchantProductDTO;
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 pageMerchantProductDTO
     * @return
     */
    R getMerchantProduct(PageMerchantProductDTO pageMerchantProductDTO);
}