@Override
public ApiOutParamsVm livebroadcastAd(String scenetype) {
LivebroadcastResourcesQuery query = new LivebroadcastResourcesQuery();
//直播首页广告
if(scenetype.equals(LbBizModelEnum.lbindexad.name())){
query.setLbbizmodel(LbBizModelEnum.lbindexad);
}
//直播热门广告
if(scenetype.equals(LbBizModelEnum.lbhotad.name())){
query.setLbbizmodel(LbBizModelEnum.lbhotad);
}
//直播附近广告
if(scenetype.equals(LbBizModelEnum.lbnearbyad.name())){
query.setLbbizmodel(LbBizModelEnum.lbnearbyad);
}
//直播关注广告
if(scenetype.equals(LbBizModelEnum.lbattentionad.name())){
query.setLbbizmodel(LbBizModelEnum.lbattentionad);
}
//直播发现广告
if(scenetype.equals(LbBizModelEnum.lbfindad.name())){
query.setLbbizmodel(LbBizModelEnum.lbfindad);
}
//直播精彩回放广告
if(scenetype.equals(LbBizModelEnum.lbplaybackad)){
query.setLbbizmodel(LbBizModelEnum.lbplaybackad);
}
List<LivebroadcastResources> list = livebroadcastResourcesService.getEntities(query);
return ApiTools.bulidOutSucceed(ApiTools.GETDATASUCCEED,list);
}
|
|