2025-06-11 09:42:13 +08:00
|
|
|
|
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;
|
2025-06-11 09:48:02 +08:00
|
|
|
|
import lombok.experimental.SuperBuilder;
|
2025-06-11 09:42:13 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @author sr on 2025-05-29
|
|
|
|
|
|
*/
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
2025-06-11 09:48:02 +08:00
|
|
|
|
@SuperBuilder
|
2025-06-11 09:42:13 +08:00
|
|
|
|
@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();
|
|
|
|
|
|
|
|
|
|
|
|
}
|