Authored by gemingdan

公告分页

... ... @@ -9,6 +9,7 @@ import com.yohoufo.common.annotation.IgnoreSession;
import com.yohoufo.common.annotation.IgnoreSignature;
import com.yohoufo.common.cache.Cachable;
import com.yohoufo.user.service.IUsersNoticeService;
import org.apache.ibatis.annotations.Param;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
... ... @@ -43,8 +44,11 @@ public class UsersNoticeController {
@IgnoreSession
@IgnoreSignature
@Cachable(expire = 120)
public ApiResponse noticeList(UsersNoticeReq reqBO){
logger.info("enter noticeList param is {}", reqBO);
public ApiResponse noticeList(@Param("page")int page,@Param("size") int size){
logger.info("enter noticeList page is {},size is {}", page,size);
UsersNoticeReq reqBO =new UsersNoticeReq();
reqBO.setPage(page);
reqBO.setSize(size);
UsersNoticeRsp result = usersNoticeService.noticeList(reqBO);
return new ApiResponse(200,"操作成功",result);
}
... ...