2025-07-30 17:00:28 +08:00

136 lines
2.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.caseData.dto.userCommentCaseExchange;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.caseData.dto.userCommentClinicalArticle.UserCommentClinicalArticleDto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class UserCommentCaseExchangeDto {
/**
* 主键id
*/
@JsonProperty("comment_id")
private String commentId;
/**
* 用户id
*/
@JsonProperty("user_id")
private String userId;
/**
* 病例交流id
*/
@JsonProperty("exchange_id")
private String exchangeId;
/**
* 医生id
*/
@JsonProperty("doctor_id")
private String doctorId;
/**
* 父级id一级评论为null
*/
@JsonProperty("parent_id")
private String parentId;
/**
* 根评论id一级评论时为null。其余为一级评论id
*/
@JsonProperty("root_id")
private String rootId;
/**
* 评论状态0:禁用 1:正常)
*/
@JsonProperty("status")
private Integer status;
/**
* 是否存在敏感词0:否 1:是)
*/
@JsonProperty("is_sensitive")
private Integer isSensitive;
/**
* 是否置顶0:否 1:是)
*/
@JsonProperty("is_top")
private Integer isTop;
/**
* 点赞数量
*/
@JsonProperty("like_num")
private Integer likeNum;
/**
* 评论内容
*/
@JsonProperty("content")
private String content;
/**
* 评论内容(原版)
*/
@JsonProperty("content_word")
private String contentWord;
/**
* 评论图片
*/
@JsonProperty("comment_image")
private String commentImage;
/**
* 创建时间
*/
@JsonProperty("created_at")
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdAt;
/**
* 修改时间
*/
@JsonProperty("updated_at")
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedAt;
/**
* 用户名称
*/
@JsonProperty("user_name")
private String userName;
/**
* 用户头像
*/
@JsonProperty("avatar")
private String avatar;
/**
* 用户唯一标识
*/
@JsonProperty("user_iden")
private String userIden;
/**
* 是否作者0:否 1:是)
*/
@JsonProperty("is_author")
private Integer isAuthor;
/**
* 次级评论
*/
@JsonProperty("sub_comment")
private List<UserCommentCaseExchangeDto> subComment;
}