84 lines
1.7 KiB
Java
84 lines
1.7 KiB
Java
package com.example.caseData.dto.userCommentClinicalVideo;
|
|
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.example.caseData.dto.caseClinicalVideoAuthor.CaseClinicalVideoAuthorDto;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import lombok.Data;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
@Data
|
|
public class GetUserClinicalVideoCommentPageDto {
|
|
/**
|
|
* 主键id
|
|
*/
|
|
@JsonProperty("comment_id")
|
|
private String commentId;
|
|
|
|
/**
|
|
* 用户id
|
|
*/
|
|
@JsonProperty("user_id")
|
|
private String userId;
|
|
|
|
/**
|
|
* 视频id
|
|
*/
|
|
@JsonProperty("video_id")
|
|
private String videoId;
|
|
|
|
/**
|
|
* 标题
|
|
*/
|
|
@JsonProperty("video_title")
|
|
private String videoTitle;
|
|
|
|
/**
|
|
* 点赞数量
|
|
*/
|
|
@JsonProperty("like_num")
|
|
private Integer likeNum;
|
|
|
|
/**
|
|
* 评论内容
|
|
*/
|
|
@JsonProperty("content")
|
|
private String content;
|
|
|
|
/**
|
|
* 评论内容(原版)
|
|
*/
|
|
@JsonProperty("content_word")
|
|
private String contentWord;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
@JsonProperty("created_at")
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private LocalDateTime createdAt;
|
|
|
|
/**
|
|
* 修改时间
|
|
*/
|
|
@JsonProperty("updated_at")
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
private LocalDateTime updatedAt;
|
|
|
|
/**
|
|
* 作者
|
|
*/
|
|
@JsonProperty("author")
|
|
private List<CaseClinicalVideoAuthorDto> author;
|
|
|
|
@Data
|
|
public static class CaseClinicalVideoAuthorDto {
|
|
/**
|
|
* 医生名称
|
|
*/
|
|
@JsonProperty("doctor_name")
|
|
private String doctorName;
|
|
}
|
|
} |