|
|
|
@@ -4,16 +4,16 @@ import cn.binarywang.wx.miniapp.api.WxMaService; |
|
|
|
import com.iformall.annotation.RedisCache; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.domain.po.WxCUser; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/live") |
|
|
|
@@ -27,7 +27,7 @@ public class WxLiveController extends BaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation("获取所有直播间和商品信息") |
|
|
|
@RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) |
|
|
|
@RedisCache(expireTime = 10) |
|
|
|
@GetMapping("/roomList") |
|
|
|
public ResultData getLiveinfos(String appId, Integer start, Integer limit) { |
|
|
|
ResultData resultData = new ResultData(); |
|
|
|
@@ -52,7 +52,7 @@ public class WxLiveController extends BaseController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation("获取直播房间回放数据和商品信息") |
|
|
|
@RedisCache(expireTime = 5, dateUnit = TimeUnit.MINUTES) |
|
|
|
@RedisCache(expireTime = 10) |
|
|
|
@GetMapping("/replayList") |
|
|
|
public ResultData getLiveReplay(Integer room_id, Integer start, Integer limit) { |
|
|
|
ResultData resultData = new ResultData(); |
|
|
|
|