数据
This commit is contained in:
@@ -7,6 +7,7 @@ import com.ruoyi.cai.dto.app.query.anchor.UpdateOrderSwitchReq;
|
||||
import com.ruoyi.cai.dto.app.vo.AnchorJoinHomeVo;
|
||||
import com.ruoyi.cai.dto.app.vo.AnchorVo;
|
||||
import com.ruoyi.cai.dto.app.vo.CameraAuditVo;
|
||||
import com.ruoyi.cai.dto.app.vo.top.AnchorTopResp;
|
||||
import com.ruoyi.cai.manager.CurrentUserManager;
|
||||
import com.ruoyi.cai.service.AnchorApplyService;
|
||||
import com.ruoyi.cai.service.AnchorService;
|
||||
@@ -46,6 +47,15 @@ public class AnchorAppController {
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/top")
|
||||
@Operation(summary = "主播置顶")
|
||||
@Log(title = "主播置顶", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<AnchorTopResp> anchorTop(){
|
||||
AnchorTopResp top = currentUserManager.top();
|
||||
return R.ok(top);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "修改当前用户的主播信息")
|
||||
@Log(title = "修改当前用户的主播信息", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
|
||||
@@ -93,7 +93,8 @@ public class IndexController {
|
||||
@Operation(summary = "首页查询主播接口-分页")
|
||||
@Log(title = "首页查询主播接口", businessType = BusinessType.OTHER,isPrintResponseData = false, isSaveDb = false)
|
||||
public R<List<AnchorListVo>> anchorPage(PageQuery page, AnchorListQuery query){
|
||||
List<AnchorListVo> home = homeManager.getHomeCache(page, query);
|
||||
// List<AnchorListVo> home = homeManager.getHomeCache(page, query);
|
||||
List<AnchorListVo> home = homeManager.getHomeV2(page, query);
|
||||
return R.ok(home);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user