zxl
4 天以前 8063ee7eee51bfe25a09428e6efc60f828b270c6
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
package cn.lili.modules.lmk.service;
 
import cn.lili.group.Add;
import cn.lili.modules.lmk.domain.entity.Video;
import cn.lili.modules.lmk.domain.form.*;
import cn.lili.modules.lmk.domain.query.*;
import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.lili.base.Result;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
 
/**
 * 视频内容 服务类
 *
 * @author xp
 * @since 2025-05-16
 */
public interface VideoService extends IService<Video> {
 
    /**
     * 添加
     * @param form
     * @return
     */
    Result add(WxVideoForm form);
 
    /**
     * 修改
     * @param form
     * @return
     */
    Result update(WxVideoForm form);
 
    /**
     * 批量删除
     * @param ids
     * @return
     */
    Result remove(List<String> ids);
 
    /**
     * id删除
     * @param id
     * @return
     */
    Result removeById(String id);
 
    /**
     * 分页查询
     * @param query
     * @return
     */
    Result page(VideoQuery query);
 
    /**
     * 根据id查找
     * @param id
     * @return
     */
    Result detail(String id);
 
    /**
     * 列表
     * @return
     */
    Result all();
 
    /**
     * 发布视频
     *
     * @param form
     * @return
     */
    Result publish(WxVideoForm form);
 
    /**
     * 平台端视频分页
     *
     * @param query
     * @return
     */
    Result managerPage(ManagerVideoQuery query);
 
    /**
     * 首页推荐设置
     *
     * @param form
     * @return
     */
    Result recommendSet(VideoRecommendForm form);
 
    /**
     * 审核
     *
     * @param form
     * @return
     */
    Result auditing(VideoAuditingForm form);
 
    /**
     * 上架
     *
     * @param id
     * @return
     */
    Result up(String id);
 
    /**
     * 下架
     *
     * @param form
     * @return
     */
    Result down(VideoDownForm form);
 
    /**
     * 小程序端的视频推荐接口
     *
     * @return
     * @param query
     */
    Result recommendVideo(VideoQuery query);
 
    Result healthRecommendVideo(WxHealthVideoQuery query);
 
    /**
     * 批量更新视频收藏数量
     *
     * @param numList
     */
    void updateCollectNumBatch(List<CollectTypeNumVO> numList);
 
    /**
     * 批量更新视频评论数量
     *
     * @param numList
     */
    void updateCommentNumBatch(List<CollectTypeNumVO> numList);
 
    /**
     * 保存视频观看记录
     *
     * @param form
     * @return
     */
    Result saveViewRecord(VideoFootPrintForm form);
 
    /**
     * 获取视频主页作者信息
     *
     * @param authorId
     * @return
     */
    Result getAuthorInfo(String authorId);
 
    /**
     * 获取视频主页作者视频分页
     *
     * @param query
     * @return
     */
    Result getAuthorVideoPage(AuthorVideoQuery query);
 
    /**
     * 获取视频主页作者收藏视频分页
     *
     * @param query
     * @return
     */
    Result getAuthorCollectVideoPage(AuthorVideoQuery query);
 
    /**
     * 保存视频主页的个人信息修改
     *
     * @param form
     * @return
     */
    Result homePageInfoEdit(VideoHomePageInfoForm form);
 
    /**
     * 小程序-视频详情
     *
     * @param id
     * @return
     */
    Result wxDetail(String id);
 
    /**
     * 大健康视频发布
     *
     * @param form
     * @return
     */
    Result healthVideo(HealthVideoForm form);
    /**
     * 修改大健康视频
     *
     * @param form
     * @return
     */
    Result updateHealthVideo(HealthVideoForm form);
    /**
     * 大健康视频列表
     *
     * @param query
     * @return
     */
    Result healthPage(HealthVideoQuery query);
    /**
     * 删除大健康视频
 
     * @param id 主键id
     * @return
     */
    Result delHealth(String id);
 
    Result addKitchenVideo( KitchenVideoForm form);
 
    Result updateKitchenVideo( KitchenVideoForm form);
    /**
     * 厨神视频列表
     *
     * @param query
     * @return
     */
    Result KitchenVideoQuery(KitchenVideoQuery query);
 
    Result delKitchen(String id);
 
    /**
     * 视频商品查看
     *
     * @param videoId
     * @return
     */
    Result getGoodsDetail(String videoId);
 
    /**
     * 用户下架视频
     *
     * @param id
     * @return
     */
    Result buyerDownVideo(String id);
 
    /**
     * 修改视频
     *
     * @param form
     * @return
     */
    Result updatePublish(WxVideoForm form);
}