You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/virtual-patient-model/src/main/java/com/supervision/model/Patient.java

98 lines
1.8 KiB
Java

package com.supervision.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.supervision.handler.StringListTypeHandler;
2 years ago
import io.swagger.annotations.ApiModel;
2 years ago
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
2 years ago
import java.util.List;
/**
*
*
* @TableName vp_patient
*/
@TableName(value = "vp_patient", autoResultMap = true)
@Data
2 years ago
@ApiModel
public class Patient implements Serializable {
/**
*
*/
@TableId
private String id;
/**
*
*/
2 years ago
@ApiModelProperty("病人名称")
private String name;
/**
* 0 1
*/
2 years ago
@ApiModelProperty("性别 0男 1女")
private Integer gender;
/**
*
*/
2 years ago
@ApiModelProperty("病人年龄")
private Integer age;
/**
*
*/
2 years ago
@ApiModelProperty("症状")
private String symptoms;
/**
*
*/
2 years ago
@ApiModelProperty("身高")
private BigDecimal height;
/**
*
*/
2 years ago
@ApiModelProperty("体重")
private BigDecimal weight;
/**
2 years ago
*
*/
2 years ago
@ApiModelProperty("疾病列表")
2 years ago
@TableField(typeHandler = StringListTypeHandler.class)
private List<String> diseaseList;
/**
* ID
*/
private String createUserId;
/**
*
*/
private LocalDateTime createTime;
/**
*
*/
private String updateUserId;
/**
*
*/
private LocalDateTime updateTime;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}