init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author sr on 2025-05-29
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Builder
|
||||
@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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user