新建订阅

This commit is contained in:
许晓东
2021-10-21 17:00:47 +08:00
parent 06351558b5
commit 00eb51eb2e
12 changed files with 212 additions and 12 deletions

View File

@@ -30,6 +30,11 @@ public class TopicController {
@Autowired
private TopicService topicService;
@GetMapping
public Object getTopicNameList() {
return topicService.getTopicNameList(false);
}
@GetMapping("/list")
public Object getTopicList(@RequestParam(required = false) String topic, @RequestParam String type) {
return topicService.getTopicList(topic, TopicType.valueOf(type.toUpperCase()));