CommentsService.java
2.23 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
package com.cnlive.shenhe.service;
import com.cnlive.shenhe.dto.CommentsDTO;
import com.cnlive.shenhe.entity.ShyComments;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* @Author: yan-zhao-wang
* @DateTime: 2022-11-01 13:10
*/
public interface CommentsService {
/**
* 根据评论对象获取评论集合
*
* @param shyComments
* @return
*/
List<ShyComments> findShyComments(ShyComments shyComments);
/**
* 修改评论 返回布尔类型
*
* @param shyComments
* @return
*/
boolean updateShyComments1(ShyComments shyComments);
/**
* 导入评论 返回布尔类型
*
* @param shyComments
* @return
*/
boolean impotComments(ShyComments shyComments);
/**
* 评论分页、条件查询
*
* @param commentsDTO
* @return
*/
PageInfo<ShyComments> getPage(CommentsDTO commentsDTO);
/**
* 导出Excel表格
*
* @param commentsDTO
* @return
*/
PageInfo<ShyComments> getPageExcel(CommentsDTO commentsDTO);
/**
* 获取评论详情
*
* @param id
* @return
*/
ShyComments getDetailsComment(Integer id, Integer spId);
/**
* 修改状态 回调 返回布尔类型
*
* @param ids
* @param state
* @param userId
* @param updater
* @param msg
* @return
*/
boolean updateState(String ids, Integer state, String userId, String updater, String msg);
/**
* 认领
*
* @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);
/**
* 根据主键id查询评论对象
*
* @param id
* @return
*/
ShyComments selectByPrimaryKey(Integer id);
/**
* 根据主键id修改对象
*
* @param comments
* @return
*/
int updateByPrimaryKeySelective(ShyComments comments);
/**
* 获取审核类型
*
* @param shyComments
*/
void getShenheType(ShyComments shyComments);
}