commit 8030fa0f4d0a8759470e05d897fefae3c6b11a2e Author: TangZhaoZhen <207525215@qq.com> Date: Wed Oct 18 09:03:42 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..c01e9e4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,23 @@ + + + + com.four + four-dimensional-health + 3.6.3 + + 4.0.0 + 3.6.3 + dimensional-health-patient + + + dimensional-health-patient患者模块 + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/four/patient/PatientApplication.java b/src/main/java/com/four/patient/PatientApplication.java new file mode 100644 index 0000000..147fc24 --- /dev/null +++ b/src/main/java/com/four/patient/PatientApplication.java @@ -0,0 +1,29 @@ +package com.four.patient; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 文件服务 + * + * @author ruoyi + */ + +@SpringBootApplication +public class PatientApplication +{ + public static void main(String[] args) + { + SpringApplication.run(PatientApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 患者服务模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +} diff --git a/src/main/java/com/four/patient/domain/AcceptedProposal.java b/src/main/java/com/four/patient/domain/AcceptedProposal.java new file mode 100644 index 0000000..b0f915c --- /dev/null +++ b/src/main/java/com/four/patient/domain/AcceptedProposal.java @@ -0,0 +1,48 @@ +package com.four.patient.domain; + +import java.util.Date; + +/** + * 被采纳建议表 + */ +public class AcceptedProposal { + + /** + * 被采纳建议id + */ + private Integer acceptedProposalId; + + /** + * 详情表中的评论id + */ + private Integer detailedReviewId; + + /** + * 采纳时间 + */ + private Date 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/patient/domain/AdvisoryCollection.java b/src/main/java/com/four/patient/domain/AdvisoryCollection.java new file mode 100644 index 0000000..b674986 --- /dev/null +++ b/src/main/java/com/four/patient/domain/AdvisoryCollection.java @@ -0,0 +1,49 @@ +package com.four.patient.domain; + + +/** + * 健康咨询收藏表 + */ + +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; + } + +} diff --git a/src/main/java/com/four/patient/domain/AutomaticResponse.java b/src/main/java/com/four/patient/domain/AutomaticResponse.java new file mode 100644 index 0000000..e24e5c6 --- /dev/null +++ b/src/main/java/com/four/patient/domain/AutomaticResponse.java @@ -0,0 +1,33 @@ +package com.four.patient.domain; + +/** + * 自动回复表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/BuyVideo.java b/src/main/java/com/four/patient/domain/BuyVideo.java new file mode 100644 index 0000000..dd8d7e1 --- /dev/null +++ b/src/main/java/com/four/patient/domain/BuyVideo.java @@ -0,0 +1,61 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/CertifiedBankCard.java b/src/main/java/com/four/patient/domain/CertifiedBankCard.java new file mode 100644 index 0000000..3e81994 --- /dev/null +++ b/src/main/java/com/four/patient/domain/CertifiedBankCard.java @@ -0,0 +1,124 @@ +package com.four.patient.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 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/patient/domain/ConsultationDetails.java b/src/main/java/com/four/patient/domain/ConsultationDetails.java new file mode 100644 index 0000000..abef950 --- /dev/null +++ b/src/main/java/com/four/patient/domain/ConsultationDetails.java @@ -0,0 +1,74 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/ConsultationRecord.java b/src/main/java/com/four/patient/domain/ConsultationRecord.java new file mode 100644 index 0000000..6938a84 --- /dev/null +++ b/src/main/java/com/four/patient/domain/ConsultationRecord.java @@ -0,0 +1,87 @@ +package com.four.patient.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 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/patient/domain/DetailCollection.java b/src/main/java/com/four/patient/domain/DetailCollection.java new file mode 100644 index 0000000..42bb955 --- /dev/null +++ b/src/main/java/com/four/patient/domain/DetailCollection.java @@ -0,0 +1,61 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/DetailedReview.java b/src/main/java/com/four/patient/domain/DetailedReview.java new file mode 100644 index 0000000..6e3624a --- /dev/null +++ b/src/main/java/com/four/patient/domain/DetailedReview.java @@ -0,0 +1,87 @@ +package com.four.patient.domain; + +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; + + 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; + } +} diff --git a/src/main/java/com/four/patient/domain/DetailsPatientCircle.java b/src/main/java/com/four/patient/domain/DetailsPatientCircle.java new file mode 100644 index 0000000..7aa0a5f --- /dev/null +++ b/src/main/java/com/four/patient/domain/DetailsPatientCircle.java @@ -0,0 +1,178 @@ +package com.four.patient.domain; + +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 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/patient/domain/DrugDetails.java b/src/main/java/com/four/patient/domain/DrugDetails.java new file mode 100644 index 0000000..bdbf372 --- /dev/null +++ b/src/main/java/com/four/patient/domain/DrugDetails.java @@ -0,0 +1,124 @@ +package com.four.patient.domain; + +/** + * 药品详情表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/FavoriteVideo.java b/src/main/java/com/four/patient/domain/FavoriteVideo.java new file mode 100644 index 0000000..83a2fe5 --- /dev/null +++ b/src/main/java/com/four/patient/domain/FavoriteVideo.java @@ -0,0 +1,46 @@ +package com.four.patient.domain; + +/** + * 我的收藏视频表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/FollowDoctor.java b/src/main/java/com/four/patient/domain/FollowDoctor.java new file mode 100644 index 0000000..4d27490 --- /dev/null +++ b/src/main/java/com/four/patient/domain/FollowDoctor.java @@ -0,0 +1,46 @@ +package com.four.patient.domain; + +/** + * 关注医生表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/Gift.java b/src/main/java/com/four/patient/domain/Gift.java new file mode 100644 index 0000000..8d2dc43 --- /dev/null +++ b/src/main/java/com/four/patient/domain/Gift.java @@ -0,0 +1,61 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/GiftRecord.java b/src/main/java/com/four/patient/domain/GiftRecord.java new file mode 100644 index 0000000..26b6351 --- /dev/null +++ b/src/main/java/com/four/patient/domain/GiftRecord.java @@ -0,0 +1,61 @@ +package com.four.patient.domain; + +import java.util.Date; + +/** + * 礼物记录表 + */ +public class GiftRecord { + + /** + * 礼物记录id + */ + private Integer giftRecordId; + + /** + * 送礼人id + */ + private Integer giverId; + + /** + * 礼物id + */ + private Integer giftId; + + /** + * 送礼时间 + */ + private Date 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/patient/domain/HistoricalConsultation.java b/src/main/java/com/four/patient/domain/HistoricalConsultation.java new file mode 100644 index 0000000..950a6ed --- /dev/null +++ b/src/main/java/com/four/patient/domain/HistoricalConsultation.java @@ -0,0 +1,59 @@ +package com.four.patient.domain; + +/** + * 历史问诊 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/LikeMock.java b/src/main/java/com/four/patient/domain/LikeMock.java new file mode 100644 index 0000000..1716cb3 --- /dev/null +++ b/src/main/java/com/four/patient/domain/LikeMock.java @@ -0,0 +1,61 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/MedicalDepartment.java b/src/main/java/com/four/patient/domain/MedicalDepartment.java new file mode 100644 index 0000000..0b34cd1 --- /dev/null +++ b/src/main/java/com/four/patient/domain/MedicalDepartment.java @@ -0,0 +1,33 @@ +package com.four.patient.domain; + +/** + * 医生科室表 + */ +public class MedicalDepartment { + + /** + * 医生科室id + */ + private Integer medicalDepartmentId; + + /** + * 医生科室名称 + */ + private String medicalDepartmentName; + + public Integer getMedicalDepartmentId() { + return medicalDepartmentId; + } + + public void setMedicalDepartmentId(Integer medicalDepartmentId) { + this.medicalDepartmentId = medicalDepartmentId; + } + + public String getMedicalDepartmentName() { + return medicalDepartmentName; + } + + public void setMedicalDepartmentName(String medicalDepartmentName) { + this.medicalDepartmentName = medicalDepartmentName; + } +} diff --git a/src/main/java/com/four/patient/domain/PathologicalDetails.java b/src/main/java/com/four/patient/domain/PathologicalDetails.java new file mode 100644 index 0000000..fef0659 --- /dev/null +++ b/src/main/java/com/four/patient/domain/PathologicalDetails.java @@ -0,0 +1,85 @@ +package com.four.patient.domain; + +/** + * 病症详情表 + */ +public class PathologicalDetails { + + /** + * 病症详情id + */ + private Integer detailsSymptomsId; + + /** + * 常见病症+常见药品id + */ + private Integer id; + + /** + * 病理 + */ + private String pathology; + + /** + * 症状 + */ + private String symptom; + + /** + * 宜与忌 + */ + private String prosCons; + + /** + * 中西药的治疗 + */ + private String 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/patient/domain/PatientEvaluator.java b/src/main/java/com/four/patient/domain/PatientEvaluator.java new file mode 100644 index 0000000..c6ad7a3 --- /dev/null +++ b/src/main/java/com/four/patient/domain/PatientEvaluator.java @@ -0,0 +1,74 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/ProfessionalTitleDoctor.java b/src/main/java/com/four/patient/domain/ProfessionalTitleDoctor.java new file mode 100644 index 0000000..b142d92 --- /dev/null +++ b/src/main/java/com/four/patient/domain/ProfessionalTitleDoctor.java @@ -0,0 +1,33 @@ +package com.four.patient.domain; + +/** + * 医生职称表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/RechargeWithdrawCash.java b/src/main/java/com/four/patient/domain/RechargeWithdrawCash.java new file mode 100644 index 0000000..1be05f4 --- /dev/null +++ b/src/main/java/com/four/patient/domain/RechargeWithdrawCash.java @@ -0,0 +1,88 @@ +package com.four.patient.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 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/patient/domain/RegistrationInformation.java b/src/main/java/com/four/patient/domain/RegistrationInformation.java new file mode 100644 index 0000000..1ef9a47 --- /dev/null +++ b/src/main/java/com/four/patient/domain/RegistrationInformation.java @@ -0,0 +1,166 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/java/com/four/patient/domain/SetAutoReply.java b/src/main/java/com/four/patient/domain/SetAutoReply.java new file mode 100644 index 0000000..2f2c85b --- /dev/null +++ b/src/main/java/com/four/patient/domain/SetAutoReply.java @@ -0,0 +1,22 @@ +package com.four.patient.domain; + +/** + * 设置自动回复 + */ +public class SetAutoReply { + + /** + * 设置自动回复id + */ + private Integer setAutoReplyId; + + /** + * 医生注册信息id + */ + private Integer registrationInformationId; + + /** + * 自动回复id + */ + private Integer automaticResponseId; +} diff --git a/src/main/java/com/four/patient/domain/Sign.java b/src/main/java/com/four/patient/domain/Sign.java new file mode 100644 index 0000000..27af38a --- /dev/null +++ b/src/main/java/com/four/patient/domain/Sign.java @@ -0,0 +1,42 @@ +package com.four.patient.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; +} diff --git a/src/main/java/com/four/patient/domain/SymptomsDrugs.java b/src/main/java/com/four/patient/domain/SymptomsDrugs.java new file mode 100644 index 0000000..ba9c77a --- /dev/null +++ b/src/main/java/com/four/patient/domain/SymptomsDrugs.java @@ -0,0 +1,46 @@ +package com.four.patient.domain; + +/** + * 常见病症+常见药品表 + */ +public class SymptomsDrugs { + + /** + * 常见病症+常见药品id + */ + private Integer id; + + /** + * 名称 + */ + private String name; + + /** + * 与id关联 + */ + private Integer pid; + + 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/patient/domain/Title.java b/src/main/java/com/four/patient/domain/Title.java new file mode 100644 index 0000000..882fd73 --- /dev/null +++ b/src/main/java/com/four/patient/domain/Title.java @@ -0,0 +1,74 @@ +package com.four.patient.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/patient/domain/User.java b/src/main/java/com/four/patient/domain/User.java new file mode 100644 index 0000000..a69b390 --- /dev/null +++ b/src/main/java/com/four/patient/domain/User.java @@ -0,0 +1,80 @@ +package com.four.patient.domain; + +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; +} diff --git a/src/main/java/com/four/patient/domain/Video.java b/src/main/java/com/four/patient/domain/Video.java new file mode 100644 index 0000000..f30194f --- /dev/null +++ b/src/main/java/com/four/patient/domain/Video.java @@ -0,0 +1,60 @@ +package com.four.patient.domain; + + +/** + * 视频表 + */ +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; + } +} diff --git a/src/main/java/com/four/patient/domain/VideoReview.java b/src/main/java/com/four/patient/domain/VideoReview.java new file mode 100644 index 0000000..e29a011 --- /dev/null +++ b/src/main/java/com/four/patient/domain/VideoReview.java @@ -0,0 +1,74 @@ +package com.four.patient.domain; + +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; + } +} diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..fbd45f5 --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,10 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + _ _ + (_) | | + _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___ +| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ +| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | | +|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_| + __/ | __/ | + |___/ |___/ \ No newline at end of file diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..05ba47d --- /dev/null +++ b/src/main/resources/bootstrap.yml @@ -0,0 +1,25 @@ +# Tomcat +server: + port: 9209 + +# Spring +spring: + application: + # 应用名称 + name: four-patient + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 101.34.252.165:8848 + config: + # 配置中心地址 + server-addr: 101.34.252.165:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..d41c8bf --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + \ No newline at end of file