review 部分站内信的实现

pull/2/head
YunaiV 2022-11-21 11:52:55 +08:00
parent 872107b319
commit 131adad9c0
4 changed files with 19 additions and 43 deletions

View File

@ -1,22 +0,0 @@
package cn.iocoder.yudao.module.system.enums.notify;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
*
*
* @author xrcoder
*/
@Getter
@AllArgsConstructor
public enum NotifyReadStatusEnum {
UNREAD(0),
READ(1);
/**
*
*/
private final Integer status;
}

View File

@ -28,11 +28,7 @@ import java.util.List;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId; import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
/** // TODO 芋艿:合并到 合并到 NotifyTemplateController 中
* - -
*
* @author xrcoder
*/
@Api(tags = "管理后台 - 站内信-消息中心") @Api(tags = "管理后台 - 站内信-消息中心")
@RestController @RestController
@RequestMapping("/system/user/notify-message") @RequestMapping("/system/user/notify-message")

View File

@ -1,9 +1,13 @@
package cn.iocoder.yudao.module.system.dal.dataobject.notify; package cn.iocoder.yudao.module.system.dal.dataobject.notify;
import lombok.*; import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
import java.util.*;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import java.util.Date;
/** /**
* DO * DO
@ -27,14 +31,20 @@ public class NotifyMessageDO extends BaseDO {
private Long id; private Long id;
/** /**
* *
*
* {@link NotifyTemplateDO#getId()}
*/ */
private Long templateId; private Long templateId;
/** /**
* *
*
* MemberUserDO id AdminUserDO id
*/ */
private Long userId; private Long userId;
/** /**
* *
*
* {@link UserTypeEnum}
*/ */
private Integer userType; private Integer userType;
/** /**
@ -46,11 +56,9 @@ public class NotifyMessageDO extends BaseDO {
*/ */
private String content; private String content;
/** /**
* 0- 1- *
*
* {@link cn.iocoder.yudao.module.system.enums.notify.NotifyReadStatusEnum}
*/ */
private Integer readStatus; private Boolean readStatus;
/** /**
* *
*/ */

View File

@ -31,38 +31,32 @@ public class NotifyTemplateDO extends BaseDO {
*/ */
@TableId @TableId
private Long id; private Long id;
/** /**
* *
*/ */
private String code; private String code;
/** /**
* *
*/ */
private String title; private String title;
/** /**
* *
*/ */
private String content; private String content;
/** /**
* *
*/ */
@TableField(typeHandler = JacksonTypeHandler.class) @TableField(typeHandler = JacksonTypeHandler.class)
private List<String> params; private List<String> params;
/** /**
* 1- 0- *
* <p> *
* {@link CommonStatusEnum} * {@link CommonStatusEnum}
*/ */
private String status; private String status;
/** /**
* *
*/ */
private String remarks; private String remark;
} }