ContentService.java
2.66 KB
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
package com.cnlive.shenhe.service;
import com.cnlive.shenhe.dto.ContentDTO;
import com.cnlive.shenhe.entity.ShyContent;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* @Author: yan-zhao-wang
* @DateTime: 2022-11-01 13:11
*/
public interface ContentService {
/**
* 获取图文对象
*
* @param shyContent
* @return
*/
ShyContent getShyContent(ShyContent shyContent);
/**
* 获取图文集合
*
* @param shyContent
* @return
*/
List<ShyContent> findShyContent(ShyContent shyContent);
/**
* 根据条件 查询图文集合
*
* @return
*/
List<ShyContent> findShyContentWithWebPage();
/**
* 修改图文 返回布尔类型
*
* @param shyContent
* @return
*/
boolean updateShyContent(ShyContent shyContent);
/**
* 导入图文 返回布尔类型
*
* @param shyContent
* @return
*/
boolean impotContent(ShyContent shyContent);
/**
* 分页、条件查询 返回集合
*
* @param contentDTO
* @return
*/
PageInfo<ShyContent> getPage(ContentDTO contentDTO);
/**
* 根据条件导出数据excel
*
* @param contentDTO
* @return
*/
List<ShyContent> findByCondition(ContentDTO contentDTO);
/**
* 根据id获取图文详情
*
* @param id
* @return
*/
ShyContent getDetailsContent(Integer id);
/**
* 回调
*
* @param contentId
* @param msg
* @param state
* @param userId
* @param updater
* @return
*/
boolean callback(String contentId, String msg, Integer state, String userId, String updater);
/**
* 认领
*
* @param ids
* @param num
* @param userId
* @param spid
* @return
*/
Integer receive(String ids, Integer num, String userId, Integer spid);
/**
* 退领
*
* @param ids
* @param userId
* @return
*/
Integer retReceive(String ids, String userId);
/**
* 根据主键查询图文对象
*
* @param id
* @return
*/
ShyContent selectByPrimaryKey(Integer id);
/**
* 根据主键修改图文
*
* @param content
* @return
*/
int updateByPrimaryKeySelective(ShyContent content);
/**
* 获取审核类型
*
* @param spId
* @param contentTag
* @return
*/
Integer getShenheType(Integer spId, String contentTag);
/**
* 易盾网站过滤
* 送审类型:1:文本 2:图片 3.网页 4:点播音频
*
* @param shyContent
*/
void contentFilter(ShyContent shyContent);
}