admin
2021-09-24 f788607ff771a47bc60d6a86e00b3433c40f3d2c
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package com.yeshi.buwan.service.inter.recommend;
 
import com.yeshi.buwan.domain.recommend.HomeRecommendSpecial;
import com.yeshi.buwan.domain.recommend.SuperHomeRecommendSpecial;
import com.yeshi.buwan.dto.recommend.HomeRecommendSpecialDTO;
import com.yeshi.buwan.exception.ParamsException;
 
import javax.validation.Valid;
import java.util.List;
 
public interface HomeRecommendSpecialService {
 
 
    /**
     * 列表
     *
     * @param systemId
     * @param detailSystemId
     * @param key
     * @return
     */
    public List<HomeRecommendSpecialDTO> list(String systemId, String detailSystemId, String key, int page, int pageSize);
 
    public long count(String systemId, String detailSystemId, String key);
 
 
    /**
     * 添加专题
     *
     * @param special
     * @throws Exception
     */
    public void addSpecial(@Valid HomeRecommendSpecial special) throws ParamsException, Exception;
 
    /**
     * 专题更新
     *
     * @param special
     * @throws Exception
     */
    public void updateSpecial(HomeRecommendSpecial special) throws Exception;
 
    /**
     * 获取专题
     *
     * @param id
     * @return
     */
    public HomeRecommendSpecial getSpecial(String id);
 
 
    /**
     * 根据专题关键词拉取专题
     * @param dataKey
     * @return
     */
    public HomeRecommendSpecial getSpecialByDataKey(String dataKey);
 
    /**
     * 根据系统ID检索
     *
     * @param systemId
     * @return
     */
    public List<HomeRecommendSpecial> listSpecialBySystemId(String systemId, String key, int page, int pageSize);
 
 
    public long countSpecialBySystemId(String systemId, String key);
 
    /**
     * 根据子系统ID检索
     *
     * @param detailSystemId
     * @return
     */
    public List<HomeRecommendSpecial> listSpecialByDetailSystemId(String detailSystemId, String key, int page, int pageSize);
 
    public long countSpecialByDetailSystemId(String detailSystemId, String key);
 
 
    /**
     * 删除专题
     *
     * @param specialId
     */
    public void deleteSpecial(String specialId);
 
 
    /**
     * 添加专题子系统映射
     *
     * @param superSpecial
     * @throws Exception
     */
    public void addSuperSpecial(@Valid SuperHomeRecommendSpecial superSpecial) throws ParamsException, Exception;
 
 
    /**
     * 更新映射
     *
     * @param superSpecial
     * @throws Exception
     */
    public void updateSuperSpecial(SuperHomeRecommendSpecial superSpecial) throws Exception;
 
 
    /**
     * 根据专题ID检索
     *
     * @param specialId
     * @return
     */
    public List<SuperHomeRecommendSpecial> listSuperSpecialBySpecialId(String specialId);
 
 
    /**
     * 删除映射
     *
     * @param specialId
     * @param detailSystemId
     */
    public void deleteSuperSpecial(String specialId, String detailSystemId);
 
 
    public void deleteSuperSpecial(String id);
 
 
}