NotspeakService.java
2.21 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
package com.cnlive.shenhe.service;
import com.cnlive.shenhe.bean.ResponseBean;
import com.cnlive.shenhe.dto.NotSpeakDTO;
import com.cnlive.shenhe.entity.ShyNotspeak;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* @Author: yan-zhao-wang
* @DateTime: 2022-11-07 9:09
*/
public interface NotspeakService {
/**
* 根据条件获取禁言集合列表
*
* @param shyNotspeak
* @return
*/
List<ShyNotspeak> findShyNotSpeak(ShyNotspeak shyNotspeak);
/**
* 根据主键修改禁言 返回布尔类型
*
* @param shyNotspeak
* @return
*/
boolean updateShyNotSpeak(ShyNotspeak shyNotspeak);
/**
* 入禁言对象 返货布尔类型
*
* @param shyNotspeak
* @return
*/
boolean impotShyNotSpeak(ShyNotspeak shyNotspeak);
/**
* 根据评论禁言
*
* @param commentId
* @param time
* @param userId
* @return
*/
ResponseBean notSpeakByComment(Integer commentId, Integer time, String userId);
/**
* 查询禁言状态
*
* @param commentId
* @param userId
* @return
*/
ResponseBean querySpeakState(Integer commentId, String userId);
/**
* 禁言回调
*
* @param notSpeakId
* @param type
* @param time
* @param userId
* @return
*/
ResponseBean speak(Integer notSpeakId, Integer type, Integer time, String userId);
/**
* 根据评论进行禁言
*
* @param commentId
* @param time
* @param userId
* @return
*/
boolean writeNotSpeakByComment(Integer commentId, Integer time, String userId);
/**
* 获取禁言分页、条件查询列表
*
* @param notSpeakDTO
* @return
*/
PageInfo<ShyNotspeak> getPage(NotSpeakDTO notSpeakDTO);
/**
* 根据主键id查询禁言对象
*
* @param id
* @return
*/
ShyNotspeak selectByPrimaryKey(Integer id);
/**
* 根据主键修改禁言对象
*
* @param shyNotspeak
* @return
*/
int updateByPrimaryKeySelective(ShyNotspeak shyNotspeak);
/**
* 获取禁言时间
*
* @return
*/
List<ShyNotspeak> getNotSpeakByTime();
}