完善项目
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.ping.study.controller.tx;
|
||||
|
||||
import com.ping.study.service.tx.LiveInfoService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/tx/nba")
|
||||
public class LiveInfoController {
|
||||
|
||||
private final LiveInfoService liveInfoService;
|
||||
|
||||
public LiveInfoController(LiveInfoService liveInfoService) {
|
||||
this.liveInfoService = liveInfoService;
|
||||
}
|
||||
|
||||
@GetMapping("/live/{cnlid}")
|
||||
public String getLiveInfo(@PathVariable String cnlid) {
|
||||
return liveInfoService.getLiveInfo(cnlid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user