@@ -42,7 +42,7 @@ public class AppNoticeController {
* 获取消息分页
*/
@GetMapping("page")
- public Result page(NoticeGroupEnum type, BasePageParam page) {
+ public Result<Page<Notice>> page(NoticeGroupEnum type, BasePageParam page) {
Page queryPage = new Page(page.getPage(), page.getSize());
return Result.success(
noticeService.page(queryPage, Wrappers.<Notice>lambdaQuery()
@@ -43,10 +43,15 @@ public class Notice extends Model<Notice> {
private Long otherId;
/**
- * 通知内容
+ * 通知内容 模板类型是订单号,其他类型完整展示内容
private String noticeMessage;
+ /**
+ * 页面跳转路径
+ */
+ private String pages;
+
* 已读标识
@@ -35,6 +35,11 @@ public class OtherNotice extends Model<OtherNotice> {
private String message;
* null
@@ -23,6 +23,11 @@ public class OtherNoticeRO {
@NotBlank(message = "内容不能为空", groups = {Add.class, Update.class})
+ * 页面路径
public interface Add {
}
@@ -26,4 +26,9 @@ public class NoticeDTO {
* 自定义传 自定义字符串