43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package com.newyetai.component.chat.dto;
|
||
|
||
import com.newyetai.common.dto.BaseDTO;
|
||
|
||
import com.newyetai.component.chat.constant.ChatMsgStatusEnum;
|
||
import com.newyetai.component.chat.constant.ChatMsgTypeEnum;
|
||
import io.swagger.annotations.ApiModel;
|
||
import io.swagger.annotations.ApiModelProperty;
|
||
import lombok.AllArgsConstructor;
|
||
import lombok.Builder;
|
||
import lombok.Builder.Default;
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
import lombok.NoArgsConstructor;
|
||
import lombok.experimental.SuperBuilder;
|
||
|
||
/**
|
||
* @author sr on 2025-05-29
|
||
*/
|
||
@NoArgsConstructor
|
||
@AllArgsConstructor
|
||
@EqualsAndHashCode(callSuper = true)
|
||
@SuperBuilder
|
||
@Data
|
||
@ApiModel(description = "聊天消息")
|
||
public class ChatMsgDTO extends BaseDTO {
|
||
|
||
/** **/
|
||
private static final long serialVersionUID = 1L;
|
||
/** 聊天id */
|
||
private Long chatId;
|
||
/** 发送用户id */
|
||
private Long senderId;
|
||
/** 消息类型:text等 */
|
||
@Default
|
||
private String msgType = ChatMsgTypeEnum.TEXT.getType();
|
||
/** 内容 */
|
||
private String content;
|
||
/** 消息状态:1未读,2已读 */
|
||
@Default
|
||
private Integer msgStatus = ChatMsgStatusEnum.INIT.getStatus();
|
||
|
||
} |