commit 4ac92b5bf0815f5b07824879de07af2b8ebcfada Author: 童成 <13191486+tong-cheng666@user.noreply.gitee.com> Date: Fri Oct 20 13:50:03 2023 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09bdfea --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +###################################################################### +# Build Tools + +.gradle +/build/ +!gradle/wrapper/gradle-wrapper.jar + +target/ +!.mvn/wrapper/maven-wrapper.jar + +###################################################################### +# IDE + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### JRebel ### +rebel.xml +### NetBeans ### +nbproject/private/ +build/* +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ + +###################################################################### +# Others +*.log +*.xml.versionsBackup +*.swp + +!*/build/*.java +!*/build/*.html +!*/build/*.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..2e70e19 --- /dev/null +++ b/pom.xml @@ -0,0 +1,37 @@ + + + + com.four + four-common + 3.6.3 + + 4.0.0 + + four-common-duck + + 3.6.3 + + + four-common-duck维度健康模块 + + + + + com.four + four-common-core + + + org.projectlombok + lombok + + + + org.projectlombok + lombok + + + + + diff --git a/src/main/java/com/four/common/duck/Result.java b/src/main/java/com/four/common/duck/Result.java new file mode 100644 index 0000000..a3238e9 --- /dev/null +++ b/src/main/java/com/four/common/duck/Result.java @@ -0,0 +1,108 @@ +package com.four.common.duck; + + + +import com.four.common.core.constant.Constants; + +import java.io.Serializable; + +/** + * 响应信息主体 + * + * @author tongcheng + */ +public class Result implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 成功 */ + public static final int SUCCESS = Constants.SUCCESS; + + /** 失败 */ + public static final int ERROR = Constants.FAIL; + + private int code; + + private String msg; + + private T data; + + public static Result success() + { + return restResult(null, SUCCESS, null); + } + + public static Result success(T data) + { + return restResult(data, SUCCESS, null); + } + + public static Result success(T data, String msg) + { + return restResult(data, SUCCESS, msg); + } + + public static Result error() + { + return restResult(null, ERROR, null); + } + + public static Result error(String msg) + { + return restResult(null, ERROR, msg); + } + + public static Result error(T data) + { + return restResult(data, ERROR, null); + } + + public static Result error(T data, String msg) + { + return restResult(data, ERROR, msg); + } + + public static Result error(int code, String msg) + { + return restResult(null, code, msg); + } + + private static Result restResult(T data, int code, String msg) + { + Result apiResult = new Result<>(); + apiResult.setCode(code); + apiResult.setData(data); + apiResult.setMsg(msg); + return apiResult; + } + + public int getCode() + { + return code; + } + + public void setCode(int code) + { + this.code = code; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public T getData() + { + return data; + } + + public void setData(T data) + { + this.data = data; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/DetailCollection.java b/src/main/java/com/four/common/duck/communitypatients/DetailCollection.java new file mode 100644 index 0000000..81c3f11 --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/DetailCollection.java @@ -0,0 +1,71 @@ +package com.four.common.duck.communitypatients; + +import java.util.Date; + +/** + * 详情表中的收藏表 + */ +public class DetailCollection { + + /** + * 详情表中的收藏id + */ + private Integer detailCollectionId; + + /** + * 病友圈详情id + */ + private Integer detailsPatientCircleId; + + /** + * 收藏时间 + */ + private Date collectionTime; + + /** + * 收藏人 + */ + private String collector; + + public Integer getDetailCollectionId() { + return detailCollectionId; + } + + public void setDetailCollectionId(Integer detailCollectionId) { + this.detailCollectionId = detailCollectionId; + } + + public Integer getDetailsPatientCircleId() { + return detailsPatientCircleId; + } + + public void setDetailsPatientCircleId(Integer detailsPatientCircleId) { + this.detailsPatientCircleId = detailsPatientCircleId; + } + + public Date getCollectionTime() { + return collectionTime; + } + + public void setCollectionTime(Date collectionTime) { + this.collectionTime = collectionTime; + } + + public String getCollector() { + return collector; + } + + public void setCollector(String collector) { + this.collector = collector; + } + + public DetailCollection() { + } + + public DetailCollection(Integer detailCollectionId, Integer detailsPatientCircleId, Date collectionTime, String collector) { + this.detailCollectionId = detailCollectionId; + this.detailsPatientCircleId = detailsPatientCircleId; + this.collectionTime = collectionTime; + this.collector = collector; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/DetailedReview.java b/src/main/java/com/four/common/duck/communitypatients/DetailedReview.java new file mode 100644 index 0000000..7e3809d --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/DetailedReview.java @@ -0,0 +1,114 @@ +package com.four.common.duck.communitypatients; + +import java.util.Date; + +/** + * 详情表中的评论表 + */ +public class DetailedReview { + + /** + * 详情表中的评论id + */ + private Integer detailedReviewId; + + /** + * 病友圈详情id + */ + private Integer detailsPatientCircleId; + + /** + * 评论时间 + */ + private Date commentTime; + + /** + * 评论人id + */ + private Integer reviewerId; + + /** + * 点赞次数 + */ + private Integer numberLikes; + + /** + * 嘲讽次数 + */ + private Integer tauntCount; + + /*** + * 评论内容 + * @return + */ + private String name; + + public DetailedReview(Integer detailedReviewId, Integer detailsPatientCircleId, Date commentTime, Integer reviewerId, Integer numberLikes, Integer tauntCount, String name) { + this.detailedReviewId = detailedReviewId; + this.detailsPatientCircleId = detailsPatientCircleId; + this.commentTime = commentTime; + this.reviewerId = reviewerId; + this.numberLikes = numberLikes; + this.tauntCount = tauntCount; + this.name = name; + } + + public Integer getDetailedReviewId() { + return detailedReviewId; + } + + public void setDetailedReviewId(Integer detailedReviewId) { + this.detailedReviewId = detailedReviewId; + } + + public Integer getDetailsPatientCircleId() { + return detailsPatientCircleId; + } + + public void setDetailsPatientCircleId(Integer detailsPatientCircleId) { + this.detailsPatientCircleId = detailsPatientCircleId; + } + + public Date getCommentTime() { + return commentTime; + } + + public void setCommentTime(Date commentTime) { + this.commentTime = commentTime; + } + + public Integer getReviewerId() { + return reviewerId; + } + + public void setReviewerId(Integer reviewerId) { + this.reviewerId = reviewerId; + } + + public Integer getNumberLikes() { + return numberLikes; + } + + public void setNumberLikes(Integer numberLikes) { + this.numberLikes = numberLikes; + } + + public Integer getTauntCount() { + return tauntCount; + } + + public void setTauntCount(Integer tauntCount) { + this.tauntCount = tauntCount; + } + + public DetailedReview() { + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/DetailsPatientCircle.java b/src/main/java/com/four/common/duck/communitypatients/DetailsPatientCircle.java new file mode 100644 index 0000000..9f2cba4 --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/DetailsPatientCircle.java @@ -0,0 +1,197 @@ +package com.four.common.duck.communitypatients; + +import java.util.Date; + +/** + * 病友圈详情表 + */ +public class DetailsPatientCircle { + + /** + * 病友圈详情id + */ + private Integer detailsPatientCircleId; + + /** + * 标题 + */ + private String title; + + /** + * 发布人id + */ + private Integer publisherId; + + /** + * 病症id + */ + private Integer diseaseId; + + /** + * 科室id + */ + private Integer departmentId; + + /** + * 病症详情 + */ + private String detailsSymptoms; + + /** + * 治疗经历开始时间 + */ + private Date treatmentExperienceStartTime; + + /** + * 治疗经历结束时间 + */ + private Date treatmentExperienceEndTime; + + /** + * 治疗经历 + */ + private String treatmentExperience; + + /** + * 相关图片 + */ + private String relatedPictures; + + /** + * 提升悬赏额度 + */ + private Integer rewardAmount; + + /** + * 收藏数量 + */ + private Integer collectionQuantity; + + /** + * 评论数量 + */ + private Integer numberComments; + + public DetailsPatientCircle() { + } + + public DetailsPatientCircle(Integer detailsPatientCircleId, String title, Integer publisherId, Integer diseaseId, Integer departmentId, String detailsSymptoms, Date treatmentExperienceStartTime, Date treatmentExperienceEndTime, String treatmentExperience, String relatedPictures, Integer rewardAmount, Integer collectionQuantity, Integer numberComments) { + this.detailsPatientCircleId = detailsPatientCircleId; + this.title = title; + this.publisherId = publisherId; + this.diseaseId = diseaseId; + this.departmentId = departmentId; + this.detailsSymptoms = detailsSymptoms; + this.treatmentExperienceStartTime = treatmentExperienceStartTime; + this.treatmentExperienceEndTime = treatmentExperienceEndTime; + this.treatmentExperience = treatmentExperience; + this.relatedPictures = relatedPictures; + this.rewardAmount = rewardAmount; + this.collectionQuantity = collectionQuantity; + this.numberComments = numberComments; + } + + public Integer getDetailsPatientCircleId() { + return detailsPatientCircleId; + } + + public void setDetailsPatientCircleId(Integer detailsPatientCircleId) { + this.detailsPatientCircleId = detailsPatientCircleId; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Integer getPublisherId() { + return publisherId; + } + + public void setPublisherId(Integer publisherId) { + this.publisherId = publisherId; + } + + public Integer getDiseaseId() { + return diseaseId; + } + + public void setDiseaseId(Integer diseaseId) { + this.diseaseId = diseaseId; + } + + public Integer getDepartmentId() { + return departmentId; + } + + public void setDepartmentId(Integer departmentId) { + this.departmentId = departmentId; + } + + public String getDetailsSymptoms() { + return detailsSymptoms; + } + + public void setDetailsSymptoms(String detailsSymptoms) { + this.detailsSymptoms = detailsSymptoms; + } + + public Date getTreatmentExperienceStartTime() { + return treatmentExperienceStartTime; + } + + public void setTreatmentExperienceStartTime(Date treatmentExperienceStartTime) { + this.treatmentExperienceStartTime = treatmentExperienceStartTime; + } + + public Date getTreatmentExperienceEndTime() { + return treatmentExperienceEndTime; + } + + public void setTreatmentExperienceEndTime(Date treatmentExperienceEndTime) { + this.treatmentExperienceEndTime = treatmentExperienceEndTime; + } + + public String getTreatmentExperience() { + return treatmentExperience; + } + + public void setTreatmentExperience(String treatmentExperience) { + this.treatmentExperience = treatmentExperience; + } + + public String getRelatedPictures() { + return relatedPictures; + } + + public void setRelatedPictures(String relatedPictures) { + this.relatedPictures = relatedPictures; + } + + public Integer getRewardAmount() { + return rewardAmount; + } + + public void setRewardAmount(Integer rewardAmount) { + this.rewardAmount = rewardAmount; + } + + public Integer getCollectionQuantity() { + return collectionQuantity; + } + + public void setCollectionQuantity(Integer collectionQuantity) { + this.collectionQuantity = collectionQuantity; + } + + public Integer getNumberComments() { + return numberComments; + } + + public void setNumberComments(Integer numberComments) { + this.numberComments = numberComments; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/DrugDetails.java b/src/main/java/com/four/common/duck/communitypatients/DrugDetails.java new file mode 100644 index 0000000..a03c079 --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/DrugDetails.java @@ -0,0 +1,139 @@ +package com.four.common.duck.communitypatients; + +/** + * 药品详情表 + */ +public class DrugDetails { + + /** + * 药品详情id + */ + private Integer drugDetailsId; + + /** + * 常见病症+常见药品表id + */ + private Integer id; + + /** + * 药品成分 + */ + private String pharmaceuticalIngredient; + + /** + * 用药禁忌 + */ + private String drugContraindication; + + /** + * 功能主治 + */ + private String functionalIndications; + + /** + * 用法用量 + */ + private String usageDosage; + + /** + * 药品性状 + */ + private String drugCharacter; + + /** + * 包装规格 + */ + private String packingSpecification; + + /** + * 不良反应 + */ + private String adverseReaction; + + public Integer getDrugDetailsId() { + return drugDetailsId; + } + + public void setDrugDetailsId(Integer drugDetailsId) { + this.drugDetailsId = drugDetailsId; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getPharmaceuticalIngredient() { + return pharmaceuticalIngredient; + } + + public void setPharmaceuticalIngredient(String pharmaceuticalIngredient) { + this.pharmaceuticalIngredient = pharmaceuticalIngredient; + } + + public String getDrugContraindication() { + return drugContraindication; + } + + public void setDrugContraindication(String drugContraindication) { + this.drugContraindication = drugContraindication; + } + + public String getFunctionalIndications() { + return functionalIndications; + } + + public void setFunctionalIndications(String functionalIndications) { + this.functionalIndications = functionalIndications; + } + + public String getUsageDosage() { + return usageDosage; + } + + public void setUsageDosage(String usageDosage) { + this.usageDosage = usageDosage; + } + + public String getDrugCharacter() { + return drugCharacter; + } + + public void setDrugCharacter(String drugCharacter) { + this.drugCharacter = drugCharacter; + } + + public String getPackingSpecification() { + return packingSpecification; + } + + public void setPackingSpecification(String packingSpecification) { + this.packingSpecification = packingSpecification; + } + + public String getAdverseReaction() { + return adverseReaction; + } + + public void setAdverseReaction(String adverseReaction) { + this.adverseReaction = adverseReaction; + } + + public DrugDetails(Integer drugDetailsId, Integer id, String pharmaceuticalIngredient, String drugContraindication, String functionalIndications, String usageDosage, String drugCharacter, String packingSpecification, String adverseReaction) { + this.drugDetailsId = drugDetailsId; + this.id = id; + this.pharmaceuticalIngredient = pharmaceuticalIngredient; + this.drugContraindication = drugContraindication; + this.functionalIndications = functionalIndications; + this.usageDosage = usageDosage; + this.drugCharacter = drugCharacter; + this.packingSpecification = packingSpecification; + this.adverseReaction = adverseReaction; + } + + public DrugDetails() { + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/LikeMock.java b/src/main/java/com/four/common/duck/communitypatients/LikeMock.java new file mode 100644 index 0000000..311c704 --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/LikeMock.java @@ -0,0 +1,71 @@ +package com.four.common.duck.communitypatients; + +import java.util.Date; + +/** + * 评论表中的点赞和嘲讽 + */ +public class LikeMock { + + /** + * 点赞和嘲讽id + */ + private Integer likeMockId; + + /** + * 点赞或嘲讽人id + */ + private Integer likeMockPeopleId; + + /** + * 点赞时间 + */ + private Date thumbsTime; + + /** + * 状态1:代表点赞2:代表嘲讽 + */ + private String likeMockStatus; + + public Integer getLikeMockId() { + return likeMockId; + } + + public void setLikeMockId(Integer likeMockId) { + this.likeMockId = likeMockId; + } + + public Integer getLikeMockPeopleId() { + return likeMockPeopleId; + } + + public void setLikeMockPeopleId(Integer likeMockPeopleId) { + this.likeMockPeopleId = likeMockPeopleId; + } + + public Date getThumbsTime() { + return thumbsTime; + } + + public void setThumbsTime(Date thumbsTime) { + this.thumbsTime = thumbsTime; + } + + public String getLikeMockStatus() { + return likeMockStatus; + } + + public void setLikeMockStatus(String likeMockStatus) { + this.likeMockStatus = likeMockStatus; + } + + public LikeMock() { + } + + public LikeMock(Integer likeMockId, Integer likeMockPeopleId, Date thumbsTime, String likeMockStatus) { + this.likeMockId = likeMockId; + this.likeMockPeopleId = likeMockPeopleId; + this.thumbsTime = thumbsTime; + this.likeMockStatus = likeMockStatus; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/PathologicalDetails.java b/src/main/java/com/four/common/duck/communitypatients/PathologicalDetails.java new file mode 100644 index 0000000..2628e3b --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/PathologicalDetails.java @@ -0,0 +1,97 @@ +package com.four.common.duck.communitypatients; + +/** + * 病症详情表 + */ +public class PathologicalDetails { + + /** + * 病症详情id + */ + private Integer detailsSymptomsId; + + /** + * 常见病症+常见药品id + */ + private Integer id; + + /** + * 病理 + */ + private String pathology; + + /** + * 症状 + */ + private String symptom; + + /** + * 宜与忌 + */ + private String prosCons; + + /** + * 中西药的治疗 + */ + private String heal; + + public PathologicalDetails() { + } + + public PathologicalDetails(Integer detailsSymptomsId, Integer id, String pathology, String symptom, String prosCons, String heal) { + this.detailsSymptomsId = detailsSymptomsId; + this.id = id; + this.pathology = pathology; + this.symptom = symptom; + this.prosCons = prosCons; + this.heal = heal; + } + + public Integer getDetailsSymptomsId() { + return detailsSymptomsId; + } + + public void setDetailsSymptomsId(Integer detailsSymptomsId) { + this.detailsSymptomsId = detailsSymptomsId; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getPathology() { + return pathology; + } + + public void setPathology(String pathology) { + this.pathology = pathology; + } + + public String getSymptom() { + return symptom; + } + + public void setSymptom(String symptom) { + this.symptom = symptom; + } + + public String getProsCons() { + return prosCons; + } + + public void setProsCons(String prosCons) { + this.prosCons = prosCons; + } + + public String getHeal() { + return heal; + } + + public void setHeal(String heal) { + this.heal = heal; + } +} diff --git a/src/main/java/com/four/common/duck/communitypatients/SymptomsDrugs.java b/src/main/java/com/four/common/duck/communitypatients/SymptomsDrugs.java new file mode 100644 index 0000000..bd2e113 --- /dev/null +++ b/src/main/java/com/four/common/duck/communitypatients/SymptomsDrugs.java @@ -0,0 +1,83 @@ +package com.four.common.duck.communitypatients; + +/** + * 常见病症+常见药品表 + */ +public class SymptomsDrugs { + + /** + * 常见病症+常见药品id + */ + private Integer id; + + /** + * 名称 + */ + private String name; + + + private String aname; + private String bname; + + public String getAname() { + return aname; + } + + public void setAname(String aname) { + this.aname = aname; + } + + public String getBname() { + return bname; + } + + public void setBname(String bname) { + this.bname = bname; + } + + /** + * 与id关联 + */ + private Integer pid; + + /** + * 照片路径 + */ + private String img; + + public SymptomsDrugs() { + } + + public SymptomsDrugs(Integer id, String name,String aname,String bname, Integer pid, String img) { + this.id = id; + this.name = name; + this.pid = pid; + this.img = img; + this.aname = aname; + this.bname = bname; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getPid() { + return pid; + } + + public void setPid(Integer pid) { + this.pid = pid; + } +} diff --git a/src/main/java/com/four/common/duck/domain/AcceptedProposal.java b/src/main/java/com/four/common/duck/domain/AcceptedProposal.java new file mode 100644 index 0000000..d8b4d07 --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/AcceptedProposal.java @@ -0,0 +1,57 @@ +package com.four.common.duck.domain; + +import java.util.Date; + +/** + * 被采纳建议表 + */ +public class AcceptedProposal { + + /** + * 被采纳建议id + */ + private Integer acceptedProposalId; + + /** + * 详情表中的评论id + */ + private Integer detailedReviewId; + + /** + * 采纳时间 + */ + private Date adoptionTime; + + public AcceptedProposal() { + } + + public AcceptedProposal(Integer acceptedProposalId, Integer detailedReviewId, Date adoptionTime) { + this.acceptedProposalId = acceptedProposalId; + this.detailedReviewId = detailedReviewId; + this.adoptionTime = adoptionTime; + } + + public Integer getAcceptedProposalId() { + return acceptedProposalId; + } + + public void setAcceptedProposalId(Integer acceptedProposalId) { + this.acceptedProposalId = acceptedProposalId; + } + + public Integer getDetailedReviewId() { + return detailedReviewId; + } + + public void setDetailedReviewId(Integer detailedReviewId) { + this.detailedReviewId = detailedReviewId; + } + + public Date getAdoptionTime() { + return adoptionTime; + } + + public void setAdoptionTime(Date adoptionTime) { + this.adoptionTime = adoptionTime; + } +} diff --git a/src/main/java/com/four/common/duck/domain/CertifiedBankCard.java b/src/main/java/com/four/common/duck/domain/CertifiedBankCard.java new file mode 100644 index 0000000..623a67d --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/CertifiedBankCard.java @@ -0,0 +1,139 @@ +package com.four.common.duck.domain; + +/** + * 用户的实名认证和银行卡 + */ +public class CertifiedBankCard { + + /** + * 用户的实名认证和银行卡id + */ + private Integer certifiedBankCardId; + + /** + * 用户的id + */ + private Integer userId; + + /** + * 真实姓名 + */ + private String realName; + + /** + * 性别 + */ + private String realGender; + + /** + * 真实籍贯 + */ + private String trueNativePlace; + + /** + * 身份证号 + */ + private Integer idNumber; + + /** + * 开户行:银行名称 + */ + private String bankName; + + /** + * 银行卡号 + */ + private String bankCardNumber; + + /** + * 状态:1身份证号 2银行卡号 + */ + private Integer certifiedBankCardStatus; + + public CertifiedBankCard() { + } + + public CertifiedBankCard(Integer certifiedBankCardId, Integer userId, String realName, String realGender, String trueNativePlace, Integer idNumber, String bankName, String bankCardNumber, Integer certifiedBankCardStatus) { + this.certifiedBankCardId = certifiedBankCardId; + this.userId = userId; + this.realName = realName; + this.realGender = realGender; + this.trueNativePlace = trueNativePlace; + this.idNumber = idNumber; + this.bankName = bankName; + this.bankCardNumber = bankCardNumber; + this.certifiedBankCardStatus = certifiedBankCardStatus; + } + + public Integer getCertifiedBankCardId() { + return certifiedBankCardId; + } + + public void setCertifiedBankCardId(Integer certifiedBankCardId) { + this.certifiedBankCardId = certifiedBankCardId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public String getRealName() { + return realName; + } + + public void setRealName(String realName) { + this.realName = realName; + } + + public String getRealGender() { + return realGender; + } + + public void setRealGender(String realGender) { + this.realGender = realGender; + } + + public String getTrueNativePlace() { + return trueNativePlace; + } + + public void setTrueNativePlace(String trueNativePlace) { + this.trueNativePlace = trueNativePlace; + } + + public Integer getIdNumber() { + return idNumber; + } + + public void setIdNumber(Integer idNumber) { + this.idNumber = idNumber; + } + + public String getBankName() { + return bankName; + } + + public void setBankName(String bankName) { + this.bankName = bankName; + } + + public String getBankCardNumber() { + return bankCardNumber; + } + + public void setBankCardNumber(String bankCardNumber) { + this.bankCardNumber = bankCardNumber; + } + + public Integer getCertifiedBankCardStatus() { + return certifiedBankCardStatus; + } + + public void setCertifiedBankCardStatus(Integer certifiedBankCardStatus) { + this.certifiedBankCardStatus = certifiedBankCardStatus; + } +} diff --git a/src/main/java/com/four/common/duck/domain/ConsultationRecord.java b/src/main/java/com/four/common/duck/domain/ConsultationRecord.java new file mode 100644 index 0000000..3386cb7 --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/ConsultationRecord.java @@ -0,0 +1,99 @@ +package com.four.common.duck.domain; + +import java.util.Date; + +/** + * 咨询记录表 + */ +public class ConsultationRecord { + + /** + * 咨询记录id + */ + private Integer consultationRecordId; + + /** + * 咨询时间 + */ + private Date consultationTime; + + /** + * 咨询人id + */ + private Integer consultantId; + + /** + * 咨询内容 + */ + private String consultationContent; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 医生回复的内容 + */ + private String replyContent; + + public Integer getConsultationRecordId() { + return consultationRecordId; + } + + public ConsultationRecord() { + } + + public ConsultationRecord(Integer consultationRecordId, Date consultationTime, Integer consultantId, String consultationContent, Integer registrationInformationId, String replyContent) { + this.consultationRecordId = consultationRecordId; + this.consultationTime = consultationTime; + this.consultantId = consultantId; + this.consultationContent = consultationContent; + this.registrationInformationId = registrationInformationId; + this.replyContent = replyContent; + } + + public void setConsultationRecordId(Integer consultationRecordId) { + this.consultationRecordId = consultationRecordId; + } + + public Date getConsultationTime() { + return consultationTime; + } + + public void setConsultationTime(Date consultationTime) { + this.consultationTime = consultationTime; + } + + public Integer getConsultantId() { + return consultantId; + } + + public void setConsultantId(Integer consultantId) { + this.consultantId = consultantId; + } + + public String getConsultationContent() { + return consultationContent; + } + + public void setConsultationContent(String consultationContent) { + this.consultationContent = consultationContent; + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public String getReplyContent() { + return replyContent; + } + + public void setReplyContent(String replyContent) { + this.replyContent = replyContent; + } +} diff --git a/src/main/java/com/four/common/duck/domain/GiftRecord.java b/src/main/java/com/four/common/duck/domain/GiftRecord.java new file mode 100644 index 0000000..8a0a8d8 --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/GiftRecord.java @@ -0,0 +1,71 @@ +package com.four.common.duck.domain; + +import java.util.Date; + +/** + * 礼物记录表 + */ +public class GiftRecord { + + /** + * 礼物记录id + */ + private Integer giftRecordId; + + /** + * 送礼人id + */ + private Integer giverId; + + /** + * 礼物id + */ + private Integer giftId; + + /** + * 送礼时间 + */ + private Date giftGivingTime; + + public GiftRecord() { + } + + public GiftRecord(Integer giftRecordId, Integer giverId, Integer giftId, Date giftGivingTime) { + this.giftRecordId = giftRecordId; + this.giverId = giverId; + this.giftId = giftId; + this.giftGivingTime = giftGivingTime; + } + + public Integer getGiftRecordId() { + return giftRecordId; + } + + public void setGiftRecordId(Integer giftRecordId) { + this.giftRecordId = giftRecordId; + } + + public Integer getGiverId() { + return giverId; + } + + public void setGiverId(Integer giverId) { + this.giverId = giverId; + } + + public Integer getGiftId() { + return giftId; + } + + public void setGiftId(Integer giftId) { + this.giftId = giftId; + } + + public Date getGiftGivingTime() { + return giftGivingTime; + } + + public void setGiftGivingTime(Date giftGivingTime) { + this.giftGivingTime = giftGivingTime; + } +} diff --git a/src/main/java/com/four/common/duck/domain/RechargeWithdrawCash.java b/src/main/java/com/four/common/duck/domain/RechargeWithdrawCash.java new file mode 100644 index 0000000..d7b8c15 --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/RechargeWithdrawCash.java @@ -0,0 +1,100 @@ +package com.four.common.duck.domain; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 充值+提现的记录表 + */ +public class RechargeWithdrawCash { + + /** + * 充值+提现id + */ + private Integer rechargeWithdrawCashId; + + /** + * 充值+提现用户id + */ + private Integer userId; + + /** + * 充值+提现金额 + */ + private BigDecimal money; + + /** + * 充值+提现时间 + */ + private Date time; + + /** + * 状态:1:提现 2:充值+签到 + */ + private Integer status; + + /** + * 用户的实名认证和银行卡id + */ + private Integer certifiedBankCardId; + + public Integer getRechargeWithdrawCashId() { + return rechargeWithdrawCashId; + } + + public RechargeWithdrawCash() { + } + + public RechargeWithdrawCash(Integer rechargeWithdrawCashId, Integer userId, BigDecimal money, Date time, Integer status, Integer certifiedBankCardId) { + this.rechargeWithdrawCashId = rechargeWithdrawCashId; + this.userId = userId; + this.money = money; + this.time = time; + this.status = status; + this.certifiedBankCardId = certifiedBankCardId; + } + + public void setRechargeWithdrawCashId(Integer rechargeWithdrawCashId) { + this.rechargeWithdrawCashId = rechargeWithdrawCashId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public BigDecimal getMoney() { + return money; + } + + public void setMoney(BigDecimal money) { + this.money = money; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Integer getCertifiedBankCardId() { + return certifiedBankCardId; + } + + public void setCertifiedBankCardId(Integer certifiedBankCardId) { + this.certifiedBankCardId = certifiedBankCardId; + } +} diff --git a/src/main/java/com/four/common/duck/domain/Sign.java b/src/main/java/com/four/common/duck/domain/Sign.java new file mode 100644 index 0000000..c0352ec --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/Sign.java @@ -0,0 +1,111 @@ +package com.four.common.duck.domain; + +/** + * 签到表 + */ +public class Sign { + + /** + * 签到id + */ + private Integer signId; + + /** + * 签到状态: 1、未签到 2、已签到 + */ + private Integer signStatus; + + /** + * 是否首发病友圈:1、未首发 2、已首发 + */ + private Integer firstPatientCircle; + + /** + * 是否病友圈首评:1、未评论 2、已评论 + */ + private Integer firstReviewPatientCircle; + + /** + * 是否完善信息:1、未完善 2、已完善 + */ + private Integer perfectInformation; + + /** + * 是否参与健康评测:1、未参与 2、参与 + */ + private Integer healthEvaluation; + + /** + * 用户id: 患者、医生都可以 + */ + private Integer userId; + + public Integer getSignId() { + return signId; + } + + public void setSignId(Integer signId) { + this.signId = signId; + } + + public Integer getSignStatus() { + return signStatus; + } + + public void setSignStatus(Integer signStatus) { + this.signStatus = signStatus; + } + + public Integer getFirstPatientCircle() { + return firstPatientCircle; + } + + public void setFirstPatientCircle(Integer firstPatientCircle) { + this.firstPatientCircle = firstPatientCircle; + } + + public Integer getFirstReviewPatientCircle() { + return firstReviewPatientCircle; + } + + public void setFirstReviewPatientCircle(Integer firstReviewPatientCircle) { + this.firstReviewPatientCircle = firstReviewPatientCircle; + } + + public Integer getPerfectInformation() { + return perfectInformation; + } + + public void setPerfectInformation(Integer perfectInformation) { + this.perfectInformation = perfectInformation; + } + + public Integer getHealthEvaluation() { + return healthEvaluation; + } + + public void setHealthEvaluation(Integer healthEvaluation) { + this.healthEvaluation = healthEvaluation; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Sign() { + } + + public Sign(Integer signId, Integer signStatus, Integer firstPatientCircle, Integer firstReviewPatientCircle, Integer perfectInformation, Integer healthEvaluation, Integer userId) { + this.signId = signId; + this.signStatus = signStatus; + this.firstPatientCircle = firstPatientCircle; + this.firstReviewPatientCircle = firstReviewPatientCircle; + this.perfectInformation = perfectInformation; + this.healthEvaluation = healthEvaluation; + this.userId = userId; + } +} diff --git a/src/main/java/com/four/common/duck/domain/Title.java b/src/main/java/com/four/common/duck/domain/Title.java new file mode 100644 index 0000000..76b788d --- /dev/null +++ b/src/main/java/com/four/common/duck/domain/Title.java @@ -0,0 +1,74 @@ +package com.four.common.duck.domain; + +import java.util.Date; + +/** + * 标题表 + */ +public class Title { + + /** + * 标题id + */ + private Integer titleId; + + /** + * 标题名称 + */ + private String titleName; + + /** + * 内容 + */ + private String content; + + /** + * 发布时间 + */ + private Date releaseTime; + + /** + * 发布作者名称 + */ + private String publishAuthorName; + + public Integer getTitleId() { + return titleId; + } + + public void setTitleId(Integer titleId) { + this.titleId = titleId; + } + + public String getTitleName() { + return titleName; + } + + public void setTitleName(String titleName) { + this.titleName = titleName; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public Date getReleaseTime() { + return releaseTime; + } + + public void setReleaseTime(Date releaseTime) { + this.releaseTime = releaseTime; + } + + public String getPublishAuthorName() { + return publishAuthorName; + } + + public void setPublishAuthorName(String publishAuthorName) { + this.publishAuthorName = publishAuthorName; + } +} diff --git a/src/main/java/com/four/common/duck/gift/Gift.java b/src/main/java/com/four/common/duck/gift/Gift.java new file mode 100644 index 0000000..2000527 --- /dev/null +++ b/src/main/java/com/four/common/duck/gift/Gift.java @@ -0,0 +1,71 @@ +package com.four.common.duck.gift; + +import java.math.BigDecimal; + +/** + * 礼物表 + */ +public class Gift { + + /** + * 礼物id + */ + private Integer giftId; + + /** + * 礼物名称 + */ + private String giftName; + + /** + * 礼物照片 + */ + private String giftPhoto; + + /** + * 礼物价格 + */ + private BigDecimal giftPrice; + + public Integer getGiftId() { + return giftId; + } + + public void setGiftId(Integer giftId) { + this.giftId = giftId; + } + + public String getGiftName() { + return giftName; + } + + public void setGiftName(String giftName) { + this.giftName = giftName; + } + + public String getGiftPhoto() { + return giftPhoto; + } + + public void setGiftPhoto(String giftPhoto) { + this.giftPhoto = giftPhoto; + } + + public BigDecimal getGiftPrice() { + return giftPrice; + } + + public void setGiftPrice(BigDecimal giftPrice) { + this.giftPrice = giftPrice; + } + + public Gift() { + } + + public Gift(Integer giftId, String giftName, String giftPhoto, BigDecimal giftPrice) { + this.giftId = giftId; + this.giftName = giftName; + this.giftPhoto = giftPhoto; + this.giftPrice = giftPrice; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/AdvisoryCollection.java b/src/main/java/com/four/common/duck/interrogation/AdvisoryCollection.java new file mode 100644 index 0000000..9521b1d --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/AdvisoryCollection.java @@ -0,0 +1,57 @@ +package com.four.common.duck.interrogation; + + +/** + * 健康咨询收藏表 + */ + +public class AdvisoryCollection { + + /** + * 健康咨询收藏id + */ + private Integer advisoryCollectionId; + + /** + * 咨询详情id + */ + private Integer consultationDetailsId; + + /** + * 收藏人id + */ + private Integer userId; + + public Integer getAdvisoryCollectionId() { + return advisoryCollectionId; + } + + public void setAdvisoryCollectionId(Integer advisoryCollectionId) { + this.advisoryCollectionId = advisoryCollectionId; + } + + public Integer getConsultationDetailsId() { + return consultationDetailsId; + } + + public void setConsultationDetailsId(Integer consultationDetailsId) { + this.consultationDetailsId = consultationDetailsId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public AdvisoryCollection() { + } + + public AdvisoryCollection(Integer advisoryCollectionId, Integer consultationDetailsId, Integer userId) { + this.advisoryCollectionId = advisoryCollectionId; + this.consultationDetailsId = consultationDetailsId; + this.userId = userId; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/AutomaticResponse.java b/src/main/java/com/four/common/duck/interrogation/AutomaticResponse.java new file mode 100644 index 0000000..70276c9 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/AutomaticResponse.java @@ -0,0 +1,41 @@ +package com.four.common.duck.interrogation; + +/** + * 自动回复表 + */ +public class AutomaticResponse { + + /** + * 自动回复id + */ + private Integer automaticResponseId; + + /** + * 自动回复内容 + */ + private String autoreplyContent; + + public Integer getAutomaticResponseId() { + return automaticResponseId; + } + + public void setAutomaticResponseId(Integer automaticResponseId) { + this.automaticResponseId = automaticResponseId; + } + + public String getAutoreplyContent() { + return autoreplyContent; + } + + public void setAutoreplyContent(String autoreplyContent) { + this.autoreplyContent = autoreplyContent; + } + + public AutomaticResponse() { + } + + public AutomaticResponse(Integer automaticResponseId, String autoreplyContent) { + this.automaticResponseId = automaticResponseId; + this.autoreplyContent = autoreplyContent; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/ConsultationDetails.java b/src/main/java/com/four/common/duck/interrogation/ConsultationDetails.java new file mode 100644 index 0000000..5cb84f6 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/ConsultationDetails.java @@ -0,0 +1,85 @@ +package com.four.common.duck.interrogation; + +import java.util.Date; + +/** + * 健康咨询详情表 + */ +public class ConsultationDetails { + + /** + * 健康咨询详情id + */ + private Integer consultationDetailsId; + + /** + * 健康咨询详情标题 + */ + private String consultationDetailsTitle; + + /** + * 发布人 + */ + private Integer userId; + + /** + * 发布时间 + */ + private Date releaseTime; + + /** + * 内容 + */ + private String consultationDetailsContent; + + public Integer getConsultationDetailsId() { + return consultationDetailsId; + } + + public void setConsultationDetailsId(Integer consultationDetailsId) { + this.consultationDetailsId = consultationDetailsId; + } + + public String getConsultationDetailsTitle() { + return consultationDetailsTitle; + } + + public void setConsultationDetailsTitle(String consultationDetailsTitle) { + this.consultationDetailsTitle = consultationDetailsTitle; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Date getReleaseTime() { + return releaseTime; + } + + public void setReleaseTime(Date releaseTime) { + this.releaseTime = releaseTime; + } + + public String getConsultationDetailsContent() { + return consultationDetailsContent; + } + + public void setConsultationDetailsContent(String consultationDetailsContent) { + this.consultationDetailsContent = consultationDetailsContent; + } + + public ConsultationDetails() { + } + + public ConsultationDetails(Integer consultationDetailsId, String consultationDetailsTitle, Integer userId, Date releaseTime, String consultationDetailsContent) { + this.consultationDetailsId = consultationDetailsId; + this.consultationDetailsTitle = consultationDetailsTitle; + this.userId = userId; + this.releaseTime = releaseTime; + this.consultationDetailsContent = consultationDetailsContent; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/FollowDoctor.java b/src/main/java/com/four/common/duck/interrogation/FollowDoctor.java new file mode 100644 index 0000000..df2e123 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/FollowDoctor.java @@ -0,0 +1,55 @@ +package com.four.common.duck.interrogation; + +/** + * 关注医生表 + */ +public class FollowDoctor { + + /** + * 关注医生id + */ + private Integer followDoctorId; + + /** + * 关注人id + */ + private Integer userId; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + public Integer getFollowDoctorId() { + return followDoctorId; + } + + public void setFollowDoctorId(Integer followDoctorId) { + this.followDoctorId = followDoctorId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public FollowDoctor() { + } + + public FollowDoctor(Integer followDoctorId, Integer userId, Integer registrationInformationId) { + this.followDoctorId = followDoctorId; + this.userId = userId; + this.registrationInformationId = registrationInformationId; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/HistoricalConsultation.java b/src/main/java/com/four/common/duck/interrogation/HistoricalConsultation.java new file mode 100644 index 0000000..bbceef5 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/HistoricalConsultation.java @@ -0,0 +1,69 @@ +package com.four.common.duck.interrogation; + +/** + * 历史问诊 + */ +public class HistoricalConsultation { + + /** + * 历史问诊id + */ + private Integer historicalConsultationId; + + /** + * 患者id + */ + private Integer patientId; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 状态1:正在问诊2:结束问诊 + */ + private Integer historicalConsultationStatus; + + public Integer getHistoricalConsultationId() { + return historicalConsultationId; + } + + public void setHistoricalConsultationId(Integer historicalConsultationId) { + this.historicalConsultationId = historicalConsultationId; + } + + public Integer getPatientId() { + return patientId; + } + + public void setPatientId(Integer patientId) { + this.patientId = patientId; + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public Integer getHistoricalConsultationStatus() { + return historicalConsultationStatus; + } + + public void setHistoricalConsultationStatus(Integer historicalConsultationStatus) { + this.historicalConsultationStatus = historicalConsultationStatus; + } + + public HistoricalConsultation() { + } + + public HistoricalConsultation(Integer historicalConsultationId, Integer patientId, Integer registrationInformationId, Integer historicalConsultationStatus) { + this.historicalConsultationId = historicalConsultationId; + this.patientId = patientId; + this.registrationInformationId = registrationInformationId; + this.historicalConsultationStatus = historicalConsultationStatus; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/PatientEvaluator.java b/src/main/java/com/four/common/duck/interrogation/PatientEvaluator.java new file mode 100644 index 0000000..5722ae9 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/PatientEvaluator.java @@ -0,0 +1,85 @@ +package com.four.common.duck.interrogation; + +import java.util.Date; + +/** + * 患者评价医生问诊表 + */ +public class PatientEvaluator { + + /** + * 患者评价医生问诊id + */ + private Integer patientEvaluatorId; + + /** + * 患者评论id + */ + private Integer patientId; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 评论内容 + */ + private String commentContent; + + /** + * 评论内容 + */ + private Date commentTime; + + public Integer getPatientEvaluatorId() { + return patientEvaluatorId; + } + + public void setPatientEvaluatorId(Integer patientEvaluatorId) { + this.patientEvaluatorId = patientEvaluatorId; + } + + public Integer getPatientId() { + return patientId; + } + + public void setPatientId(Integer patientId) { + this.patientId = patientId; + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public String getCommentContent() { + return commentContent; + } + + public void setCommentContent(String commentContent) { + this.commentContent = commentContent; + } + + public Date getCommentTime() { + return commentTime; + } + + public void setCommentTime(Date commentTime) { + this.commentTime = commentTime; + } + + public PatientEvaluator() { + } + + public PatientEvaluator(Integer patientEvaluatorId, Integer patientId, Integer registrationInformationId, String commentContent, Date commentTime) { + this.patientEvaluatorId = patientEvaluatorId; + this.patientId = patientId; + this.registrationInformationId = registrationInformationId; + this.commentContent = commentContent; + this.commentTime = commentTime; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/ProfessionalTitleDoctor.java b/src/main/java/com/four/common/duck/interrogation/ProfessionalTitleDoctor.java new file mode 100644 index 0000000..5115d8b --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/ProfessionalTitleDoctor.java @@ -0,0 +1,41 @@ +package com.four.common.duck.interrogation; + +/** + * 医生职称表 + */ +public class ProfessionalTitleDoctor { + + /** + * 医生职称id + */ + private Integer professionalTitleDoctorId; + + /** + * 医生职称名称 + */ + private String professionalTitleDoctorName; + + public Integer getProfessionalTitleDoctorId() { + return professionalTitleDoctorId; + } + + public void setProfessionalTitleDoctorId(Integer professionalTitleDoctorId) { + this.professionalTitleDoctorId = professionalTitleDoctorId; + } + + public String getProfessionalTitleDoctorName() { + return professionalTitleDoctorName; + } + + public void setProfessionalTitleDoctorName(String professionalTitleDoctorName) { + this.professionalTitleDoctorName = professionalTitleDoctorName; + } + + public ProfessionalTitleDoctor() { + } + + public ProfessionalTitleDoctor(Integer professionalTitleDoctorId, String professionalTitleDoctorName) { + this.professionalTitleDoctorId = professionalTitleDoctorId; + this.professionalTitleDoctorName = professionalTitleDoctorName; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/RegistrationInformation.java b/src/main/java/com/four/common/duck/interrogation/RegistrationInformation.java new file mode 100644 index 0000000..a9c84f1 --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/RegistrationInformation.java @@ -0,0 +1,184 @@ +package com.four.common.duck.interrogation; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 医生注册信息表 + */ +public class RegistrationInformation { + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 真实姓名 + */ + private String realName; + + /** + * 所属医院 + */ + private String affiliatedHospital; + + /** + * 医生科室id + */ + private Integer medicalDepartmentId; + + /** + * 医生职称id + */ + private Integer professionalTitleDoctorId; + + /** + * 个人简历 + */ + private String personalResume; + + /** + * 擅长领域 + */ + private String areaExpertise; + + /** + * 注册时间 + */ + private Date registrationTime; + + /** + * 服务患者次数 + */ + private String numberPatientsServed; + + /** + * 咨询价格 + */ + private BigDecimal consultingPrice; + + /** + * 审核状态:1:待审核2:审核通过3:已驳回 + */ + private Integer registrationInformationExamineStatus; + + /** + * 医生的状态:1:在线2:离线 + */ + private Integer registrationInformationMedicStatus; + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public String getRealName() { + return realName; + } + + public void setRealName(String realName) { + this.realName = realName; + } + + public String getAffiliatedHospital() { + return affiliatedHospital; + } + + public void setAffiliatedHospital(String affiliatedHospital) { + this.affiliatedHospital = affiliatedHospital; + } + + public Integer getMedicalDepartmentId() { + return medicalDepartmentId; + } + + public void setMedicalDepartmentId(Integer medicalDepartmentId) { + this.medicalDepartmentId = medicalDepartmentId; + } + + public Integer getProfessionalTitleDoctorId() { + return professionalTitleDoctorId; + } + + public void setProfessionalTitleDoctorId(Integer professionalTitleDoctorId) { + this.professionalTitleDoctorId = professionalTitleDoctorId; + } + + public String getPersonalResume() { + return personalResume; + } + + public void setPersonalResume(String personalResume) { + this.personalResume = personalResume; + } + + public String getAreaExpertise() { + return areaExpertise; + } + + public void setAreaExpertise(String areaExpertise) { + this.areaExpertise = areaExpertise; + } + + public Date getRegistrationTime() { + return registrationTime; + } + + public void setRegistrationTime(Date registrationTime) { + this.registrationTime = registrationTime; + } + + public String getNumberPatientsServed() { + return numberPatientsServed; + } + + public void setNumberPatientsServed(String numberPatientsServed) { + this.numberPatientsServed = numberPatientsServed; + } + + public BigDecimal getConsultingPrice() { + return consultingPrice; + } + + public void setConsultingPrice(BigDecimal consultingPrice) { + this.consultingPrice = consultingPrice; + } + + public Integer getRegistrationInformationExamineStatus() { + return registrationInformationExamineStatus; + } + + public void setRegistrationInformationExamineStatus(Integer registrationInformationExamineStatus) { + this.registrationInformationExamineStatus = registrationInformationExamineStatus; + } + + public Integer getRegistrationInformationMedicStatus() { + return registrationInformationMedicStatus; + } + + public void setRegistrationInformationMedicStatus(Integer registrationInformationMedicStatus) { + this.registrationInformationMedicStatus = registrationInformationMedicStatus; + } + + public RegistrationInformation() { + } + + public RegistrationInformation(Integer registrationInformationId, String realName, String affiliatedHospital, Integer medicalDepartmentId, Integer professionalTitleDoctorId, String personalResume, String areaExpertise, Date registrationTime, String numberPatientsServed, BigDecimal consultingPrice, Integer registrationInformationExamineStatus, Integer registrationInformationMedicStatus) { + this.registrationInformationId = registrationInformationId; + this.realName = realName; + this.affiliatedHospital = affiliatedHospital; + this.medicalDepartmentId = medicalDepartmentId; + this.professionalTitleDoctorId = professionalTitleDoctorId; + this.personalResume = personalResume; + this.areaExpertise = areaExpertise; + this.registrationTime = registrationTime; + this.numberPatientsServed = numberPatientsServed; + this.consultingPrice = consultingPrice; + this.registrationInformationExamineStatus = registrationInformationExamineStatus; + this.registrationInformationMedicStatus = registrationInformationMedicStatus; + } +} diff --git a/src/main/java/com/four/common/duck/interrogation/SetAutoReply.java b/src/main/java/com/four/common/duck/interrogation/SetAutoReply.java new file mode 100644 index 0000000..8e9ce6d --- /dev/null +++ b/src/main/java/com/four/common/duck/interrogation/SetAutoReply.java @@ -0,0 +1,55 @@ +package com.four.common.duck.interrogation; + +/** + * 设置自动回复 + */ +public class SetAutoReply { + + /** + * 设置自动回复id + */ + private Integer setAutoReplyId; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 自动回复id + */ + private Integer automaticResponseId; + + public SetAutoReply() { + } + + public Integer getSetAutoReplyId() { + return setAutoReplyId; + } + + public void setSetAutoReplyId(Integer setAutoReplyId) { + this.setAutoReplyId = setAutoReplyId; + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public Integer getAutomaticResponseId() { + return automaticResponseId; + } + + public void setAutomaticResponseId(Integer automaticResponseId) { + this.automaticResponseId = automaticResponseId; + } + + public SetAutoReply(Integer setAutoReplyId, Integer registrationInformationId, Integer automaticResponseId) { + this.setAutoReplyId = setAutoReplyId; + this.registrationInformationId = registrationInformationId; + this.automaticResponseId = automaticResponseId; + } +} diff --git a/src/main/java/com/four/common/duck/my/User.java b/src/main/java/com/four/common/duck/my/User.java new file mode 100644 index 0000000..c4f43c5 --- /dev/null +++ b/src/main/java/com/four/common/duck/my/User.java @@ -0,0 +1,212 @@ +package com.four.common.duck.my; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 用户表 + */ +public class User { + + /** + * 用户id + */ + private Integer userId; + + /** + * 用户名称 + */ + private String username; + + /** + * 用户密码 + */ + private String password; + + /** + * 邮箱 + */ + private String userEmail; + + /** + * 手机号 + */ + private String userPhone; + + /** + * 头像 + */ + private String userAvatar; + + /** + * 性别 + */ + private String userSex; + + /** + * 体征 + */ + private String userSign; + + /** + * 注册时间 + */ + private Date registrationTime; + + /** + * 绑定微信状态 1:未绑定 2:已绑定 + */ + private Integer bindWechatStatus; + + /** + * 实名认证状态 1:未绑定 2:已绑定 + */ + private Integer realNameAuthenticationStatus; + + /** + * 绑定银行卡状态 1:未绑定 2:已绑定 + */ + private Integer bindBankCardStatus; + + /** + * 余额 + */ + private BigDecimal userMoney; + + /** + * 余额 + */ + private String invitationCode; + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getUserEmail() { + return userEmail; + } + + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public String getUserPhone() { + return userPhone; + } + + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + public String getUserAvatar() { + return userAvatar; + } + + public void setUserAvatar(String userAvatar) { + this.userAvatar = userAvatar; + } + + public String getUserSex() { + return userSex; + } + + public void setUserSex(String userSex) { + this.userSex = userSex; + } + + public String getUserSign() { + return userSign; + } + + public void setUserSign(String userSign) { + this.userSign = userSign; + } + + public Date getRegistrationTime() { + return registrationTime; + } + + public void setRegistrationTime(Date registrationTime) { + this.registrationTime = registrationTime; + } + + public Integer getBindWechatStatus() { + return bindWechatStatus; + } + + public void setBindWechatStatus(Integer bindWechatStatus) { + this.bindWechatStatus = bindWechatStatus; + } + + public Integer getRealNameAuthenticationStatus() { + return realNameAuthenticationStatus; + } + + public void setRealNameAuthenticationStatus(Integer realNameAuthenticationStatus) { + this.realNameAuthenticationStatus = realNameAuthenticationStatus; + } + + public Integer getBindBankCardStatus() { + return bindBankCardStatus; + } + + public void setBindBankCardStatus(Integer bindBankCardStatus) { + this.bindBankCardStatus = bindBankCardStatus; + } + + public BigDecimal getUserMoney() { + return userMoney; + } + + public void setUserMoney(BigDecimal userMoney) { + this.userMoney = userMoney; + } + + public String getInvitationCode() { + return invitationCode; + } + + public void setInvitationCode(String invitationCode) { + this.invitationCode = invitationCode; + } + + public User() { + } + + public User(Integer userId, String username, String password, String userEmail, String userPhone, String userAvatar, String userSex, String userSign, Date registrationTime, Integer bindWechatStatus, Integer realNameAuthenticationStatus, Integer bindBankCardStatus, BigDecimal userMoney, String invitationCode) { + this.userId = userId; + this.username = username; + this.password = password; + this.userEmail = userEmail; + this.userPhone = userPhone; + this.userAvatar = userAvatar; + this.userSex = userSex; + this.userSign = userSign; + this.registrationTime = registrationTime; + this.bindWechatStatus = bindWechatStatus; + this.realNameAuthenticationStatus = realNameAuthenticationStatus; + this.bindBankCardStatus = bindBankCardStatus; + this.userMoney = userMoney; + this.invitationCode = invitationCode; + } +} diff --git a/src/main/java/com/four/common/duck/response/DetailsPatientCircleSymptomsDrugs.java b/src/main/java/com/four/common/duck/response/DetailsPatientCircleSymptomsDrugs.java new file mode 100644 index 0000000..8f5ed60 --- /dev/null +++ b/src/main/java/com/four/common/duck/response/DetailsPatientCircleSymptomsDrugs.java @@ -0,0 +1,184 @@ +package com.four.common.duck.response; + +import lombok.Data; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * @program: four-common-duck + * @author: spc + * @create: 2023-10-19 16:33 + * @Version 1.0 + **/ + +@Data +public class DetailsPatientCircleSymptomsDrugs { + /** + * 病友圈详情id + */ + private Integer detailsPatientCircleId; + + /** + * 标题 + */ + private String title; + + /** + * 发布人id + */ + private Integer publisherId; + + /** + * 病症id + */ + private Integer diseaseId; + + /** + * 科室id + */ + private Integer departmentId; + + /** + * 病症详情 + */ + private String detailsSymptoms; + + /** + * 治疗经历开始时间 + */ + private Date treatmentExperienceStartTime; + + /** + * 治疗经历结束时间 + */ + private Date treatmentExperienceEndTime; + + /** + * 治疗经历 + */ + private String treatmentExperience; + + /** + * 相关图片 + */ + private String relatedPictures; + + /** + * 提升悬赏额度 + */ + private Integer rewardAmount; + + /** + * 收藏数量 + */ + private Integer collectionQuantity; + + /** + * 评论数量 + */ + private Integer numberComments; + + //---------------------------------------------------------- + //---------------------------------------------------------- + //---------------------------------------------------------- + + /** + * 常见病症+常见药品id + */ + private Integer id; + + /** + * 名称 + */ + private String name; + + private String aname; + private String bname; + + /** + * 与id关联 + */ + private Integer pid; + + /** + * 照片路径 + */ + private String img; + + //---------------------------------------------------------- + //---------------------------------------------------------- + //---------------------------------------------------------- + //---------------------------------------------------------- + + /** + * 用户id + */ + private Integer userId; + + /** + * 用户名称 + */ + private String username; + + /** + * 用户密码 + */ + private String password; + + /** + * 邮箱 + */ + private String userEmail; + + /** + * 手机号 + */ + private String userPhone; + + /** + * 头像 + */ + private String userAvatar; + + /** + * 性别 + */ + private String userSex; + + /** + * 体征 + */ + private String userSign; + + /** + * 注册时间 + */ + private Date registrationTime; + + /** + * 绑定微信状态 1:未绑定 2:已绑定 + */ + private Integer bindWechatStatus; + + /** + * 实名认证状态 1:未绑定 2:已绑定 + */ + private Integer realNameAuthenticationStatus; + + /** + * 绑定银行卡状态 1:未绑定 2:已绑定 + */ + private Integer bindBankCardStatus; + + /** + * 余额 + */ + private BigDecimal userMoney; + + /** + * 余额 + */ + private String invitationCode; +} + diff --git a/src/main/java/com/four/common/duck/response/ResponseRegistrationInformation.java b/src/main/java/com/four/common/duck/response/ResponseRegistrationInformation.java new file mode 100644 index 0000000..85bd362 --- /dev/null +++ b/src/main/java/com/four/common/duck/response/ResponseRegistrationInformation.java @@ -0,0 +1,211 @@ +package com.four.common.duck.response; + +import com.four.common.duck.communitypatients.SymptomsDrugs; + +import java.math.BigDecimal; +import java.util.Date; + +public class ResponseRegistrationInformation { + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 真实姓名 + */ + private String realName; + + /** + * 所属医院 + */ + private String affiliatedHospital; + + /** + * 医生科室id + */ + private Integer medicalDepartmentId; + + /** + * 医生职称id + */ + private Integer professionalTitleDoctorId; + + /** + * 个人简历 + */ + private String personalResume; + + /** + * 擅长领域 + */ + private String areaExpertise; + + /** + * 注册时间 + */ + private Date registrationTime; + + /** + * 服务患者次数 + */ + private String numberPatientsServed; + + /** + * 咨询价格 + */ + private BigDecimal consultingPrice; + + /** + * 审核状态:1:待审核2:审核通过3:已驳回 + */ + private Integer registrationInformationExamineStatus; + + /** + * 医生的状态:1:在线2:离线 + */ + private Integer registrationInformationMedicStatus; + + /** + * 科室名称 + */ + private String name; + + + /** + * 医生职称名称 + */ + private Integer professionalTitleDoctorName; + + public ResponseRegistrationInformation() { + } + + public Integer getRegistrationInformationId() { + return registrationInformationId; + } + + public void setRegistrationInformationId(Integer registrationInformationId) { + this.registrationInformationId = registrationInformationId; + } + + public String getRealName() { + return realName; + } + + public void setRealName(String realName) { + this.realName = realName; + } + + public String getAffiliatedHospital() { + return affiliatedHospital; + } + + public void setAffiliatedHospital(String affiliatedHospital) { + this.affiliatedHospital = affiliatedHospital; + } + + public Integer getMedicalDepartmentId() { + return medicalDepartmentId; + } + + public void setMedicalDepartmentId(Integer medicalDepartmentId) { + this.medicalDepartmentId = medicalDepartmentId; + } + + public Integer getProfessionalTitleDoctorId() { + return professionalTitleDoctorId; + } + + public void setProfessionalTitleDoctorId(Integer professionalTitleDoctorId) { + this.professionalTitleDoctorId = professionalTitleDoctorId; + } + + public String getPersonalResume() { + return personalResume; + } + + public void setPersonalResume(String personalResume) { + this.personalResume = personalResume; + } + + public String getAreaExpertise() { + return areaExpertise; + } + + public void setAreaExpertise(String areaExpertise) { + this.areaExpertise = areaExpertise; + } + + public Date getRegistrationTime() { + return registrationTime; + } + + public void setRegistrationTime(Date registrationTime) { + this.registrationTime = registrationTime; + } + + public String getNumberPatientsServed() { + return numberPatientsServed; + } + + public void setNumberPatientsServed(String numberPatientsServed) { + this.numberPatientsServed = numberPatientsServed; + } + + public BigDecimal getConsultingPrice() { + return consultingPrice; + } + + public void setConsultingPrice(BigDecimal consultingPrice) { + this.consultingPrice = consultingPrice; + } + + public Integer getRegistrationInformationExamineStatus() { + return registrationInformationExamineStatus; + } + + public void setRegistrationInformationExamineStatus(Integer registrationInformationExamineStatus) { + this.registrationInformationExamineStatus = registrationInformationExamineStatus; + } + + public Integer getRegistrationInformationMedicStatus() { + return registrationInformationMedicStatus; + } + + public void setRegistrationInformationMedicStatus(Integer registrationInformationMedicStatus) { + this.registrationInformationMedicStatus = registrationInformationMedicStatus; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getProfessionalTitleDoctorName() { + return professionalTitleDoctorName; + } + + public void setProfessionalTitleDoctorName(Integer professionalTitleDoctorName) { + this.professionalTitleDoctorName = professionalTitleDoctorName; + } + + public ResponseRegistrationInformation(Integer registrationInformationId, String realName, String affiliatedHospital, Integer medicalDepartmentId, Integer professionalTitleDoctorId, String personalResume, String areaExpertise, Date registrationTime, String numberPatientsServed, BigDecimal consultingPrice, Integer registrationInformationExamineStatus, Integer registrationInformationMedicStatus, String name, Integer professionalTitleDoctorName) { + this.registrationInformationId = registrationInformationId; + this.realName = realName; + this.affiliatedHospital = affiliatedHospital; + this.medicalDepartmentId = medicalDepartmentId; + this.professionalTitleDoctorId = professionalTitleDoctorId; + this.personalResume = personalResume; + this.areaExpertise = areaExpertise; + this.registrationTime = registrationTime; + this.numberPatientsServed = numberPatientsServed; + this.consultingPrice = consultingPrice; + this.registrationInformationExamineStatus = registrationInformationExamineStatus; + this.registrationInformationMedicStatus = registrationInformationMedicStatus; + this.name = name; + this.professionalTitleDoctorName = professionalTitleDoctorName; + } +} diff --git a/src/main/java/com/four/common/duck/video/BuyVideo.java b/src/main/java/com/four/common/duck/video/BuyVideo.java new file mode 100644 index 0000000..c0adeb6 --- /dev/null +++ b/src/main/java/com/four/common/duck/video/BuyVideo.java @@ -0,0 +1,71 @@ +package com.four.common.duck.video; + +import java.util.Date; + +/** + * 购买视频表 + */ +public class BuyVideo { + + /** + * 购买视频id + */ + private Integer buyVideoId; + + /** + * 视频id + */ + private Integer videoId; + + /** + * 购买人id + */ + private Integer userId; + + /** + * 购买时间 + */ + private Date buyTime; + + public Integer getBuyVideoId() { + return buyVideoId; + } + + public void setBuyVideoId(Integer buyVideoId) { + this.buyVideoId = buyVideoId; + } + + public Integer getVideoId() { + return videoId; + } + + public void setVideoId(Integer videoId) { + this.videoId = videoId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Date getBuyTime() { + return buyTime; + } + + public void setBuyTime(Date buyTime) { + this.buyTime = buyTime; + } + + public BuyVideo() { + } + + public BuyVideo(Integer buyVideoId, Integer videoId, Integer userId, Date buyTime) { + this.buyVideoId = buyVideoId; + this.videoId = videoId; + this.userId = userId; + this.buyTime = buyTime; + } +} diff --git a/src/main/java/com/four/common/duck/video/FavoriteVideo.java b/src/main/java/com/four/common/duck/video/FavoriteVideo.java new file mode 100644 index 0000000..d510e3c --- /dev/null +++ b/src/main/java/com/four/common/duck/video/FavoriteVideo.java @@ -0,0 +1,55 @@ +package com.four.common.duck.video; + +/** + * 我的收藏视频表 + */ +public class FavoriteVideo { + + /** + * 收藏视频id + */ + private Integer favoriteVideoId; + + /** + * 视频id + */ + private Integer videoId; + + /** + * 收藏人id + */ + private Integer userId; + + public Integer getFavoriteVideoId() { + return favoriteVideoId; + } + + public void setFavoriteVideoId(Integer favoriteVideoId) { + this.favoriteVideoId = favoriteVideoId; + } + + public Integer getVideoId() { + return videoId; + } + + public void setVideoId(Integer videoId) { + this.videoId = videoId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public FavoriteVideo() { + } + + public FavoriteVideo(Integer favoriteVideoId, Integer videoId, Integer userId) { + this.favoriteVideoId = favoriteVideoId; + this.videoId = videoId; + this.userId = userId; + } +} diff --git a/src/main/java/com/four/common/duck/video/Video.java b/src/main/java/com/four/common/duck/video/Video.java new file mode 100644 index 0000000..7b2c31a --- /dev/null +++ b/src/main/java/com/four/common/duck/video/Video.java @@ -0,0 +1,70 @@ +package com.four.common.duck.video; + + +/** + * 视频表 + */ +public class Video { + + /** + * 视频id + */ + private Integer videoId; + + /** + * 视频标题 + */ + private String videoTitle; + + /** + * 视频详情 + */ + private String videoDetails; + + /** + * 视频路径 + */ + private String videoPath; + + public Integer getVideoId() { + return videoId; + } + + public void setVideoId(Integer videoId) { + this.videoId = videoId; + } + + public String getVideoTitle() { + return videoTitle; + } + + public void setVideoTitle(String videoTitle) { + this.videoTitle = videoTitle; + } + + public String getVideoDetails() { + return videoDetails; + } + + public void setVideoDetails(String videoDetails) { + this.videoDetails = videoDetails; + } + + public String getVideoPath() { + return videoPath; + } + + public void setVideoPath(String videoPath) { + this.videoPath = videoPath; + } + + public Video() { + } + + public Video(Integer videoId, String videoTitle, String videoDetails, String videoPath) { + this.videoId = videoId; + this.videoTitle = videoTitle; + this.videoDetails = videoDetails; + this.videoPath = videoPath; + } +} diff --git a/src/main/java/com/four/common/duck/video/VideoReview.java b/src/main/java/com/four/common/duck/video/VideoReview.java new file mode 100644 index 0000000..7e12184 --- /dev/null +++ b/src/main/java/com/four/common/duck/video/VideoReview.java @@ -0,0 +1,85 @@ +package com.four.common.duck.video; + +import java.util.Date; + +/** + * 视频评论表 + */ +public class VideoReview { + + /** + * 视频评论id + */ + private Integer videoReviewId; + + /** + * 视频id + */ + private Integer videoId; + + /** + * 评论人id + */ + private Integer userId; + + /** + * 评论时间 + */ + private Date commentTime; + + /** + * 评论内容 + */ + private String commentContent; + + public Integer getVideoReviewId() { + return videoReviewId; + } + + public void setVideoReviewId(Integer videoReviewId) { + this.videoReviewId = videoReviewId; + } + + public Integer getVideoId() { + return videoId; + } + + public void setVideoId(Integer videoId) { + this.videoId = videoId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public Date getCommentTime() { + return commentTime; + } + + public void setCommentTime(Date commentTime) { + this.commentTime = commentTime; + } + + public String getCommentContent() { + return commentContent; + } + + public void setCommentContent(String commentContent) { + this.commentContent = commentContent; + } + + public VideoReview() { + } + + public VideoReview(Integer videoReviewId, Integer videoId, Integer userId, Date commentTime, String commentContent) { + this.videoReviewId = videoReviewId; + this.videoId = videoId; + this.userId = userId; + this.commentTime = commentTime; + this.commentContent = commentContent; + } +}