1231123
This commit is contained in:
@@ -37,7 +37,11 @@ public class HomeRecommendJob {
|
||||
}catch (Exception e){
|
||||
log.error("刷新首页推荐置顶用户失败",e);
|
||||
}
|
||||
|
||||
try {
|
||||
homeManager.refreshAnchorBannerCache();
|
||||
}catch (Exception e){
|
||||
log.error("刷新首页主播推荐失败",e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.cai.domain.AnchorBanner;
|
||||
import com.ruoyi.cai.dto.admin.vo.anchorBanner.AnchorBannerAdminVo;
|
||||
import com.ruoyi.cai.service.AnchorBannerService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.annotation.RepeatSubmit;
|
||||
@@ -41,8 +42,8 @@ public class AnchorBannerController extends BaseController {
|
||||
*/
|
||||
@SaCheckPermission("cai:anchorBanner:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<AnchorBanner> list(AnchorBanner bo, PageQuery pageQuery) {
|
||||
Page<AnchorBanner> page = anchorBannerService.page(pageQuery.build(), Wrappers.lambdaQuery(bo));
|
||||
public TableDataInfo<AnchorBannerAdminVo> list(AnchorBannerAdminVo bo, PageQuery pageQuery) {
|
||||
Page<AnchorBannerAdminVo> page = anchorBannerService.pageAdmin(pageQuery, bo);
|
||||
return TableDataInfo.build(page);
|
||||
}
|
||||
|
||||
|
||||
@@ -81,6 +81,14 @@ public class IndexController {
|
||||
return R.ok(BeanConvertUtil.convertListTo(res, IndexBannerVo::new));
|
||||
}
|
||||
|
||||
@GetMapping("/anchor/hot")
|
||||
@Operation(summary = "首页查询技师主播推荐")
|
||||
@Log(title = "首页查询技师主播推荐", businessType = BusinessType.OTHER,isPrintResponseData = false, isSaveDb = false)
|
||||
public R<List<AnchorListVo>> anchorHot(){
|
||||
List<AnchorListVo> home = homeManager.getAnchorBannerCache();
|
||||
return R.ok(home);
|
||||
}
|
||||
|
||||
@GetMapping("/anchor/page")
|
||||
@Operation(summary = "首页查询主播接口-分页")
|
||||
@Log(title = "首页查询主播接口", businessType = BusinessType.OTHER,isPrintResponseData = false, isSaveDb = false)
|
||||
|
||||
Reference in New Issue
Block a user