咨询服务名片消息已读接口
This commit is contained in:
+65
@@ -0,0 +1,65 @@
|
||||
package com.renkang.consultation.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: Im消息已读日志 , 目前用于新疆项目中医生名片点击次数限制 且此表中暂时只存储了医生名片类型的消息
|
||||
* @Author: feng
|
||||
* @Date: 2025-12-10
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("im_msg_read_log")
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "Im消息已读日志", description = "Im消息已读日志")
|
||||
public class ImMsgReadLog implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(title = "id")
|
||||
private String id;
|
||||
/**
|
||||
* 群组ID
|
||||
*/
|
||||
@Schema(title = "群组ID")
|
||||
private String groupId;
|
||||
/**
|
||||
* 发送者账号
|
||||
*/
|
||||
@Schema(title = "发送者账号")
|
||||
private String fromAccount;
|
||||
/**
|
||||
* 接受者账号(消息已读人员账号)
|
||||
*/
|
||||
@Schema(title = "接受者账号")
|
||||
private String toAccount;
|
||||
/**
|
||||
* 消息ID (腾讯IM平台生成的消息ID 并非im_msg_record_all表的ID)
|
||||
*/
|
||||
@Schema(title = "消息ID(腾讯IM平台生成的消息ID)")
|
||||
private String msgId;
|
||||
/**
|
||||
* 读取次数(点击次数)
|
||||
*/
|
||||
@Schema(title = "读取次数(点击次数)")
|
||||
private Integer readCount;
|
||||
/**
|
||||
* 发送时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(title = "读取时间")
|
||||
private Date readTime;
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.renkang.consultation.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@Schema(title = "Im消息已读日志vo", description = "Im消息已读日志vo")
|
||||
public class ImMsgReadLogVO {
|
||||
/**
|
||||
* 群组ID
|
||||
*/
|
||||
@Schema(title = "群组ID")
|
||||
@NotNull(message = "缺少必填参数:groupid")
|
||||
private String groupId;
|
||||
/**
|
||||
* 发送者账号
|
||||
*/
|
||||
@Schema(title = "发送者账号")
|
||||
@NotNull(message = "缺少必填参数:fromAccount")
|
||||
private String fromAccount;
|
||||
/**
|
||||
* 接受者账号(消息已读人员账号)
|
||||
*/
|
||||
@Schema(title = "接受者账号")
|
||||
@NotNull(message = "缺少必填参数:toAccount")
|
||||
private String toAccount;
|
||||
/**
|
||||
* 消息ID (腾讯IM平台生成的消息ID 并非im_msg_record_all表的ID)
|
||||
*/
|
||||
@Schema(title = "消息ID(腾讯IM平台生成的消息ID)")
|
||||
@NotNull(message = "缺少必填参数:msgId")
|
||||
private String msgId;
|
||||
}
|
||||
Reference in New Issue
Block a user