|
|
|
@@ -13,6 +13,8 @@ import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/live") |
|
|
|
@Api(tags = "微信直播相关接口") |
|
|
|
@@ -25,7 +27,7 @@ public class WxLiveController extends BaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation("获取所有直播间和商品信息") |
|
|
|
@RedisCache |
|
|
|
@RedisCache(expireTime = 30,dateUnit = TimeUnit.MINUTES) |
|
|
|
@GetMapping("/roomList") |
|
|
|
public ResultData getLiveinfos(String appId) { |
|
|
|
ResultData resultData = new ResultData(); |
|
|
|
@@ -50,7 +52,7 @@ public class WxLiveController extends BaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation("获取直播房间回放数据和商品信息") |
|
|
|
@RedisCache |
|
|
|
@RedisCache(expireTime = 30,dateUnit = TimeUnit.MINUTES) |
|
|
|
@GetMapping("/replayList") |
|
|
|
public ResultData getLiveReplay(Integer room_id, Integer start, Integer limit) { |
|
|
|
ResultData resultData = new ResultData(); |
|
|
|
|