|
|
@ -75,7 +75,9 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
public R newlyPublishedArticles(PageContentReqVO reqVO) { |
|
|
|
if (reqVO.getRole()!=null||reqVO.getRole().equals("admin") || ObjectUtil.isNotNull(reqVO.isIsadmin()) || reqVO.isIsadmin()){ |
|
|
|
if(reqVO.getRole()==null){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if (reqVO.getRole()!=null||reqVO.getRole().equals("admin") || ObjectUtil.isNotNull(reqVO.isIsadmin()) || reqVO.isIsadmin()){ |
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
} |
|
|
|
} |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize()); |
|
|
|