|
@@ -4,11 +4,11 @@ package com.dragon.tj.portal.controller;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.dragon.tj.portal.common.base.R;
|
|
|
-import com.dragon.tj.portal.common.vo.message.MessageInfoParam;
|
|
|
-import com.dragon.tj.portal.common.vo.message.MessageInfoVO;
|
|
|
import com.dragon.tj.portal.common.vo.message.MessagePageParam;
|
|
|
+import com.dragon.tj.portal.common.vo.notice.NoticeInfoParam;
|
|
|
+import com.dragon.tj.portal.common.vo.notice.NoticeInfoVO;
|
|
|
import com.dragon.tj.portal.component.log.annotation.SysLog;
|
|
|
-import com.dragon.tj.portal.service.MessageInfoService;
|
|
|
+import com.dragon.tj.portal.service.NoticeInfoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -28,7 +28,7 @@ import java.util.List;
|
|
|
public class NoticeInfoController {
|
|
|
|
|
|
@Autowired
|
|
|
- private MessageInfoService messageInfoService;
|
|
|
+ private NoticeInfoService noticeInfoService;
|
|
|
|
|
|
/**
|
|
|
* 分页查询
|
|
@@ -39,7 +39,7 @@ public class NoticeInfoController {
|
|
|
*/
|
|
|
@GetMapping("/page")
|
|
|
public R page(Page page, MessagePageParam req) {
|
|
|
- IPage iPage = messageInfoService.queryPage(page, req);
|
|
|
+ IPage iPage = noticeInfoService.queryPage(page, req);
|
|
|
return R.ok(iPage);
|
|
|
}
|
|
|
|
|
@@ -48,7 +48,7 @@ public class NoticeInfoController {
|
|
|
*/
|
|
|
@GetMapping("detail")
|
|
|
public R detail(Long id) {
|
|
|
- MessageInfoVO messageInfoVO = messageInfoService.detail(id);
|
|
|
+ NoticeInfoVO messageInfoVO = noticeInfoService.detail(id);
|
|
|
return R.ok(messageInfoVO);
|
|
|
}
|
|
|
|
|
@@ -57,8 +57,8 @@ public class NoticeInfoController {
|
|
|
*/
|
|
|
@SysLog("信息更新")
|
|
|
@PostMapping("update")
|
|
|
- public R update(@Validated @RequestBody MessageInfoParam messageInfoParam) {
|
|
|
- return R.ok(messageInfoService.update(messageInfoParam));
|
|
|
+ public R update(@Validated @RequestBody NoticeInfoParam messageInfoParam) {
|
|
|
+ return R.ok(noticeInfoService.update(messageInfoParam));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -66,7 +66,7 @@ public class NoticeInfoController {
|
|
|
*/
|
|
|
@GetMapping("read")
|
|
|
public R read(Long id) {
|
|
|
- return R.ok(messageInfoService.read(id));
|
|
|
+ return R.ok(noticeInfoService.read(id));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -74,7 +74,7 @@ public class NoticeInfoController {
|
|
|
*/
|
|
|
@GetMapping("reads")
|
|
|
public R reads(List<Long> ids) {
|
|
|
- return R.ok(messageInfoService.reads(ids));
|
|
|
+ return R.ok(noticeInfoService.reads(ids));
|
|
|
}
|
|
|
}
|
|
|
|