实现公告获取和输出
This commit is contained in:
@@ -48,6 +48,9 @@ public class DataController {
|
||||
@Autowired
|
||||
private VUserfileService vUserfileService;
|
||||
|
||||
@Autowired
|
||||
private NoticeService noticeService;
|
||||
|
||||
@Resource
|
||||
private HttpServletRequest httpServletRequest;
|
||||
|
||||
@@ -172,4 +175,9 @@ public class DataController {
|
||||
throw new UserException(ResultEnum.ILLEGAL_ACCESS);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/home/findAllNotice")
|
||||
public List<TbNotice> findAllNotice(){
|
||||
return noticeService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user