@RestController @RequestMapping(value="/api") public class DataApi extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private DataService |
dataService |
private static org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
DataApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceResult |
changeConsumerStatus(String topic,
String group,
int status) |
ServiceResult |
getAllGroups() |
ServiceResult |
getAllMsgList() |
ServiceResult |
getAllTopics() |
ServiceResult |
getGroupTopics(String group) |
ServiceResult |
getMsgList(String topic,
String group) |
ServiceResult |
getTopicGroups(String topic) |
private static final org.slf4j.Logger log
@Autowired private DataService dataService
@RequestMapping(value="/getAllTopics",
method=GET)
public ServiceResult getAllTopics()
@RequestMapping(value="/getAllGroups",
method=GET)
public ServiceResult getAllGroups()
@RequestMapping(value="/getTopicGroups/{topic}",
method=GET)
public ServiceResult getTopicGroups(@PathVariable(value="topic")
String topic)
@RequestMapping(value="/getGroupTopics/{group}",
method=GET)
public ServiceResult getGroupTopics(@PathVariable(value="group")
String group)
@RequestMapping(value="/getMsgList/{topic}/{group}",
method=GET)
public ServiceResult getMsgList(@PathVariable(value="topic")
String topic,
@PathVariable(value="group")
String group)
@RequestMapping(value="/getAllMsgList",
method=GET)
public ServiceResult getAllMsgList()
@RequestMapping(value="/changeConsumerStatus/{topic}/{group}/{status}",
method=GET)
public ServiceResult changeConsumerStatus(@PathVariable(value="topic")
String topic,
@PathVariable(value="group")
String group,
@PathVariable(value="status")
int status)
Copyright © 2020. All rights reserved.