From 8b0dd174285faed9afdd7341a177df4e60d98192 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期五, 25 八月 2023 01:56:25 +0800
Subject: [PATCH] 优化代码
---
java110-bean/src/main/java/com/java110/dto/questionAnswer/QuestionAnswerDto.java | 170 +++++++++++++++++++++++++++++++++++---------------------
1 files changed, 106 insertions(+), 64 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/dto/questionAnswer/QuestionAnswerDto.java b/java110-bean/src/main/java/com/java110/dto/questionAnswer/QuestionAnswerDto.java
index a12bc56..c7bb545 100755
--- a/java110-bean/src/main/java/com/java110/dto/questionAnswer/QuestionAnswerDto.java
+++ b/java110-bean/src/main/java/com/java110/dto/questionAnswer/QuestionAnswerDto.java
@@ -1,6 +1,8 @@
package com.java110.dto.questionAnswer;
import com.java110.dto.PageDto;
+import com.java110.dto.questionTitle.QuestionTitleDto;
+import com.java110.dto.questionTitleValue.QuestionTitleValueDto;
import java.io.Serializable;
import java.util.Date;
@@ -8,7 +10,7 @@
/**
* @ClassName FloorDto
- * @Description 绛斿嵎鏁版嵁灞傚皝瑁�
+ * @Description 闂嵎鎶曠エ鏁版嵁灞傚皝瑁�
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
@@ -16,31 +18,46 @@
**/
public class QuestionAnswerDto extends PageDto implements Serializable {
- public static final String QA_TYPE_COMMUNITY = "3306";//灏忓尯
- public static final String QA_TYPE_STORE = "3307";//鍟嗘埛ID
+ public static final String QA_TYPE_VOTE = "3003";// 涓氫富鎶曠エ
+ public static final String QA_TYPE_QUESTION = "1001";// 涓氫富闂嵎
+
+ public static final String STATE_WAIT = "W"; // 寰呭彂甯�
+ public static final String STATE_COMPLETE = "C"; //鍙戝竷瀹屾垚
private String qaName;
private String qaType;
- private String qaTypeName;
private String startTime;
- private String endTime;
- private String storeId;
- private String objType;
- private String objId;
- private String[] objIds;
- private String qaId;
- private String userId;
private String remark;
+ private String endTime;
+ private String communityId;
private String content;
- private List<String> photos;
+ private String qaId;
- private String url;
-
- private List<String> fileUrls;
+ private String titleType;
private Date createTime;
private String statusCd = "0";
+
+ private long voteCount; // 鎬绘姇绁ㄤ汉鏁�
+
+ private long votedCount; // 宸叉姇绁ㄤ汉鏁�
+
+ private long score;
+
+ private String ownerName;
+
+ private String link;
+
+ private String roomName;
+
+ private List<QuestionTitleValueDto> titleValues;
+
+ private List<QuestionTitleDto> titles;
+
+ private String state;
+
+ private String userQaId;
public String getQaName() {
return qaName;
@@ -66,6 +83,14 @@
this.startTime = startTime;
}
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
public String getEndTime() {
return endTime;
}
@@ -74,28 +99,20 @@
this.endTime = endTime;
}
- public String getStoreId() {
- return storeId;
+ public String getCommunityId() {
+ return communityId;
}
- public void setStoreId(String storeId) {
- this.storeId = storeId;
+ public void setCommunityId(String communityId) {
+ this.communityId = communityId;
}
- public String getObjType() {
- return objType;
+ public String getContent() {
+ return content;
}
- public void setObjType(String objType) {
- this.objType = objType;
- }
-
- public String getObjId() {
- return objId;
- }
-
- public void setObjId(String objId) {
- this.objId = objId;
+ public void setContent(String content) {
+ this.content = content;
}
public String getQaId() {
@@ -105,6 +122,7 @@
public void setQaId(String qaId) {
this.qaId = qaId;
}
+
public Date getCreateTime() {
return createTime;
@@ -122,67 +140,91 @@
this.statusCd = statusCd;
}
- public String[] getObjIds() {
- return objIds;
+ public List<QuestionTitleValueDto> getTitleValues() {
+ return titleValues;
}
- public void setObjIds(String[] objIds) {
- this.objIds = objIds;
+ public void setTitleValues(List<QuestionTitleValueDto> titleValues) {
+ this.titleValues = titleValues;
}
- public String getQaTypeName() {
- return qaTypeName;
+ public long getVoteCount() {
+ return voteCount;
}
- public void setQaTypeName(String qaTypeName) {
- this.qaTypeName = qaTypeName;
+ public void setVoteCount(long voteCount) {
+ this.voteCount = voteCount;
}
- public String getUserId() {
- return userId;
+ public long getVotedCount() {
+ return votedCount;
}
- public void setUserId(String userId) {
- this.userId = userId;
+ public void setVotedCount(long votedCount) {
+ this.votedCount = votedCount;
}
- public String getRemark() {
- return remark;
+ public String getTitleType() {
+ return titleType;
}
- public void setRemark(String remark) {
- this.remark = remark;
+ public void setTitleType(String titleType) {
+ this.titleType = titleType;
}
- public String getContent() {
- return content;
+ public String getState() {
+ return state;
}
- public void setContent(String content) {
- this.content = content;
+ public void setState(String state) {
+ this.state = state;
}
- public List<String> getPhotos() {
- return photos;
+ public String getOwnerName() {
+ return ownerName;
}
- public void setPhotos(List<String> photos) {
- this.photos = photos;
+ public void setOwnerName(String ownerName) {
+ this.ownerName = ownerName;
}
- public String getUrl() {
- return url;
+ public String getLink() {
+ return link;
}
- public void setUrl(String url) {
- this.url = url;
+ public void setLink(String link) {
+ this.link = link;
}
- public List<String> getFileUrls() {
- return fileUrls;
+ public String getRoomName() {
+ return roomName;
}
- public void setFileUrls(List<String> fileUrls) {
- this.fileUrls = fileUrls;
+ public void setRoomName(String roomName) {
+ this.roomName = roomName;
}
-}
\ No newline at end of file
+
+ public String getUserQaId() {
+ return userQaId;
+ }
+
+ public void setUserQaId(String userQaId) {
+ this.userQaId = userQaId;
+ }
+
+ public List<QuestionTitleDto> getTitles() {
+ return titles;
+ }
+
+ public void setTitles(List<QuestionTitleDto> titles) {
+ this.titles = titles;
+ }
+
+ public long getScore() {
+ return score;
+ }
+
+ public void setScore(long score) {
+ this.score = score;
+ }
+}
--
Gitblit v1.8.0