mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	review 部分站内信的实现
This commit is contained in:
		@@ -28,11 +28,7 @@ import java.util.List;
 | 
			
		||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
 | 
			
		||||
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 管理后台 - 站内信-消息中心
 | 
			
		||||
 *
 | 
			
		||||
 * @author xrcoder
 | 
			
		||||
 */
 | 
			
		||||
// TODO 芋艿:合并到 合并到 NotifyTemplateController 中
 | 
			
		||||
@Api(tags = "管理后台 - 站内信-消息中心")
 | 
			
		||||
@RestController
 | 
			
		||||
@RequestMapping("/system/user/notify-message")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,13 @@
 | 
			
		||||
package cn.iocoder.yudao.module.system.dal.dataobject.notify;
 | 
			
		||||
 | 
			
		||||
import lombok.*;
 | 
			
		||||
import java.util.*;
 | 
			
		||||
import com.baomidou.mybatisplus.annotation.*;
 | 
			
		||||
import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
 | 
			
		||||
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
 | 
			
		||||
@@ -27,14 +31,20 @@ public class NotifyMessageDO extends BaseDO {
 | 
			
		||||
    private Long id;
 | 
			
		||||
    /**
 | 
			
		||||
     * 站内信模版编号
 | 
			
		||||
     *
 | 
			
		||||
     * 关联 {@link NotifyTemplateDO#getId()}
 | 
			
		||||
     */
 | 
			
		||||
    private Long templateId;
 | 
			
		||||
    /**
 | 
			
		||||
     * 用户编号
 | 
			
		||||
     *
 | 
			
		||||
     * 关联 MemberUserDO 的 id 字段、或者 AdminUserDO 的 id 字段
 | 
			
		||||
     */
 | 
			
		||||
    private Long userId;
 | 
			
		||||
    /**
 | 
			
		||||
     * 用户类型
 | 
			
		||||
     *
 | 
			
		||||
     * 枚举 {@link UserTypeEnum}
 | 
			
		||||
     */
 | 
			
		||||
    private Integer userType;
 | 
			
		||||
    /**
 | 
			
		||||
@@ -46,11 +56,9 @@ public class NotifyMessageDO extends BaseDO {
 | 
			
		||||
     */
 | 
			
		||||
    private String content;
 | 
			
		||||
    /**
 | 
			
		||||
     * 是否已读 0-未读  1-已读
 | 
			
		||||
     *
 | 
			
		||||
     * 枚举 {@link cn.iocoder.yudao.module.system.enums.notify.NotifyReadStatusEnum}
 | 
			
		||||
     * 是否已读
 | 
			
		||||
     */
 | 
			
		||||
    private Integer readStatus;
 | 
			
		||||
    private Boolean readStatus;
 | 
			
		||||
    /**
 | 
			
		||||
     * 阅读时间
 | 
			
		||||
     */
 | 
			
		||||
 
 | 
			
		||||
@@ -31,38 +31,32 @@ public class NotifyTemplateDO extends BaseDO {
 | 
			
		||||
     */
 | 
			
		||||
    @TableId
 | 
			
		||||
    private Long id;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 模版编码
 | 
			
		||||
     */
 | 
			
		||||
    private String code;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 模版标题
 | 
			
		||||
     */
 | 
			
		||||
    private String title;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 模版内容
 | 
			
		||||
     */
 | 
			
		||||
    private String content;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 参数数组
 | 
			
		||||
     */
 | 
			
		||||
    @TableField(typeHandler = JacksonTypeHandler.class)
 | 
			
		||||
    private List<String> params;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 状态:1-启用 0-禁用
 | 
			
		||||
     * <p>
 | 
			
		||||
     * 状态
 | 
			
		||||
     *
 | 
			
		||||
     * 枚举 {@link CommonStatusEnum}
 | 
			
		||||
     */
 | 
			
		||||
    private String status;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 备注
 | 
			
		||||
     */
 | 
			
		||||
    private String remarks;
 | 
			
		||||
    private String remark;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user