|
@@ -0,0 +1,83 @@
|
|
|
|
|
+package com.nb.im.service.dto;
|
|
|
|
|
+
|
|
|
|
|
+import com.nb.core.entity.GenericEntity;
|
|
|
|
|
+import com.nb.core.enums.SexEnum;
|
|
|
|
|
+import com.nb.im.enums.ImStatusEnum;
|
|
|
|
|
+import com.nb.im.enums.SponsorEnum;
|
|
|
|
|
+import com.nb.web.api.enums.ClinicManageEnum;
|
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @author lifang
|
|
|
|
|
+ * @version 1.0.0
|
|
|
|
|
+ * @ClassName ImRoomDetailDto.java
|
|
|
|
|
+ * @Description TODO
|
|
|
|
|
+ * @createTime 2022年09月06日 10:11:00
|
|
|
|
|
+ */
|
|
|
|
|
+@Data
|
|
|
|
|
+public class ImRoomDetailDto {
|
|
|
|
|
+
|
|
|
|
|
+ private String id;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "病人id",readOnly = true)
|
|
|
|
|
+ private String patientId;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "住院号",readOnly = true)
|
|
|
|
|
+ private String patientCode;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "病人名称",readOnly = true)
|
|
|
|
|
+ private String patientName;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "病人年龄",readOnly = true)
|
|
|
|
|
+ private Integer patientAge;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "病人性别",readOnly = true)
|
|
|
|
|
+ private SexEnum patientSex;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "看护位置",allowableValues = "0(院内管理) 1(居家管理)",required = true)
|
|
|
|
|
+ private ClinicManageEnum manageType;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "看护人id",readOnly = true)
|
|
|
|
|
+ @NotNull(message = "看护人id不能为空",groups = GenericEntity.Insert.class)
|
|
|
|
|
+ private String assistId;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "医生id",readOnly = true)
|
|
|
|
|
+ @NotNull(message = "医生id不能为空",groups = GenericEntity.Insert.class)
|
|
|
|
|
+ private String doctorId;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "发起人类型",readOnly = true,allowableValues = "0(看护人发起) 1(医生发起)")
|
|
|
|
|
+ @NotNull(message = "发起类型不能为空",groups = GenericEntity.Insert.class)
|
|
|
|
|
+ private SponsorEnum sponsorType;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "聊天室总消息数",readOnly = true)
|
|
|
|
|
+ private Integer totalCount;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "成功建立聊天室时间",readOnly = true)
|
|
|
|
|
+ private Date successTime;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "聊天室状态",readOnly = true)
|
|
|
|
|
+ private ImStatusEnum status;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "聊天室最后一条消息id",readOnly = true)
|
|
|
|
|
+ private String lastMsgId;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "聊天室最后一条消息时间",readOnly = true)
|
|
|
|
|
+ private Date lastMsgTime;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "聊天室最后一条消息发送人",readOnly = true)
|
|
|
|
|
+ private String lastSenderId;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "监控是否结束",readOnly = true)
|
|
|
|
|
+ private Boolean monitorFinished;
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "监控结束时间",readOnly = true)
|
|
|
|
|
+ private Date monitorFinishedTime;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @ApiModelProperty(value = "消息未读数量",readOnly = true)
|
|
|
|
|
+ private Integer unreadCount;
|
|
|
|
|
+}
|