TopicService.java
1.2 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
package com.aigeo.keyword.service;
import com.aigeo.keyword.entity.Topic;
import java.util.List;
import java.util.Optional;
/**
* 话题服务接口
*/
public interface TopicService {
/**
* 保存话题
*/
Topic save(Topic topic);
/**
* 根据ID查找话题
*/
Optional<Topic> findById(Integer id);
/**
* 根据公司ID查找话题列表
*/
List<Topic> findByCompanyId(Integer companyId);
/**
* 根据来源任务ID查找话题列表
*/
List<Topic> findBySourceTaskId(Integer sourceTaskId);
/**
* 根据标题查找话题
*/
List<Topic> findByTitle(String title);
/**
* 根据公司ID和标题查找话题
*/
List<Topic> findByCompanyIdAndTitle(Integer companyId, String title);
/**
* 根据状态查找话题列表
*/
List<Topic> findByStatus(String status);
/**
* 根据公司ID和状态查找话题列表
*/
List<Topic> findByCompanyIdAndStatus(Integer companyId, String status);
/**
* 查找所有话题
*/
List<Topic> findAll();
/**
* 删除话题
*/
void deleteById(Integer id);
}