From 9bd6df8c14c503ba6e92ce59fd15b7a200b419b1 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Mon, 8 Jun 2020 14:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=BF=83=E7=90=86=E5=92=A8?= =?UTF-8?q?=E8=AF=A2=E9=97=AE=E9=A2=98DTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/psychology/PsychologyAnswerDTO.java | 91 ++++++++++++++ .../dto/psychology/PsychologyQuestionDTO.java | 111 +++++++++++++++++ .../form/PsychologyQuestionFormDTO.java | 115 ++++++++++++++++++ 3 files changed, 317 insertions(+) create mode 100644 epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyAnswerDTO.java create mode 100644 epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyQuestionDTO.java create mode 100644 epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/form/PsychologyQuestionFormDTO.java diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyAnswerDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyAnswerDTO.java new file mode 100644 index 0000000..2daa22b --- /dev/null +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyAnswerDTO.java @@ -0,0 +1,91 @@ +/** + * Copyright 2018 人人开源 https://www.renren.io + *

+ * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + *

+ * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.dto.psychology; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 心理问题答复表 + * + * @author zhangyuan qu@elink-cn.com + * @since v1.0.0 2020-06-08 + */ +@Data +public class PsychologyAnswerDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 问题id + */ + private String questionId; + + /** + * 咨询师id(被绑定的管理端用户id) + */ + private String psychologistId; + + /** + * 咨询师名称 + */ + private String psychologistName; + + /** + * 回复问题的内容 + */ + private String answerContent; + + /** + * 删除标记 0:未删除,1:已删除 + */ + private String delFlag; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + +} \ No newline at end of file diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyQuestionDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyQuestionDTO.java new file mode 100644 index 0000000..11288d9 --- /dev/null +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/PsychologyQuestionDTO.java @@ -0,0 +1,111 @@ +/** + * Copyright 2018 人人开源 https://www.renren.io + *

+ * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + *

+ * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.dto.psychology; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 心理问题提问表 + * + * @author zhangyuan qu@elink-cn.com + * @since v1.0.0 2020-06-08 + */ +@Data +public class PsychologyQuestionDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 提问者 用户id + */ + private String userId; + + /** + * 提问者用户名 + */ + private String userName; + + /** + * 用户的头像 + */ + private String userAvatar; + + /** + * 问题内容 + */ + private String questionContent; + + /** + * 已匿名 0否 1是 + */ + private String anonymousFlag; + + /** + * 咨询师id (被绑定的管理端用户id)用户指定向谁提问 + */ + private String psychologistId; + + /** + * 问题已几有人回复 + */ + private Integer answerNum; + + /** + * 是否展示 0否 ,1是 + */ + private String displayFlag; + + /** + * 删除标记 0:未删除,1:已删除 + */ + private String delFlag; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + +} \ No newline at end of file diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/form/PsychologyQuestionFormDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/form/PsychologyQuestionFormDTO.java new file mode 100644 index 0000000..6f63c06 --- /dev/null +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/psychology/form/PsychologyQuestionFormDTO.java @@ -0,0 +1,115 @@ +/** + * Copyright 2018 人人开源 https://www.renren.io + *

+ * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + *

+ * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.dto.psychology.form; + +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.io.Serializable; +import java.util.Date; + + +/** + * 心理问题提问表 + * + * @author zhangyuan qu@elink-cn.com + * @since v1.0.0 2020-06-08 + */ +@Data +public class PsychologyQuestionFormDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 提问者 用户id + */ + private String userId; + + /** + * 提问者用户名 + */ + private String userName; + + /** + * 用户的头像 + */ + private String userAvatar; + + /** + * 问题内容 + */ + @NotBlank(message = "问题内容不能为空") + private String questionContent; + + /** + * 已匿名 0否 1是 + */ + @NotBlank(message = "是否匿名不能为空") + private String anonymousFlag; + + /** + * 咨询师id (被绑定的管理端用户id)用户指定向谁提问 + */ + private String psychologistId; + + /** + * 问题已几有人回复 + */ + private Integer answerNum; + + /** + * 是否展示 0否 ,1是 + */ + private String displayFlag; + + /** + * 删除标记 0:未删除,1:已删除 + */ + private String delFlag; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + +} \ No newline at end of file