diff --git a/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java b/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java index 9dc7489..dbfee67 100644 --- a/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java +++ b/src/main/java/com/cm/bigdata/config/properties/PartyBuildingProperties.java @@ -21,22 +21,7 @@ public class PartyBuildingProperties { private String title; private String servicecityUrl; private String logoUrl; - - public String getLogoUrl() { - return logoUrl == null ? "" : logoUrl; - } - - public void setLogoUrl(String logoUrl) { - this.logoUrl = logoUrl; - } - - public String getServicecityUrl() { - return servicecityUrl == null ? "" : servicecityUrl; - } - - public void setServicecityUrl(String servicecityUrl) { - this.servicecityUrl = servicecityUrl; - } + private String populationUrl; public Integer getPort() { return port; @@ -61,4 +46,28 @@ public class PartyBuildingProperties { public void setTitle(String title) { this.title = title; } + + public String getServicecityUrl() { + return servicecityUrl == null ? "" : servicecityUrl; + } + + public void setServicecityUrl(String servicecityUrl) { + this.servicecityUrl = servicecityUrl; + } + + public String getLogoUrl() { + return logoUrl == null ? "" : logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + } + + public String getPopulationUrl() { + return populationUrl == null ? "" : populationUrl; + } + + public void setPopulationUrl(String populationUrl) { + this.populationUrl = populationUrl; + } } diff --git a/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java b/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java new file mode 100644 index 0000000..9ad1d83 --- /dev/null +++ b/src/main/java/com/cm/bigdata/config/properties/ScoreProperties.java @@ -0,0 +1,55 @@ +package com.cm.bigdata.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * When you feel like quitting. Think about why you started + * 当你想要放弃的时候,想想当初你为何开始 + * + * @ClassName: ScoreProperties + * @Description: 系统配置 + * @Author: renpc + * @Date: 2020/12/21 15:53 下午 + * @Version: 1.0 + **/ +@Component +@ConfigurationProperties(prefix = "score") +public class ScoreProperties { + private Integer bossGrossscore; + private Integer personGrossscore; + private Integer meetingGrossscore; + private double bossEveryone; + + public Integer getBossGrossscore() { + return bossGrossscore; + } + + public void setBossGrossscore(Integer bossGrossscore) { + this.bossGrossscore = bossGrossscore; + } + + public Integer getPersonGrossscore() { + return personGrossscore; + } + + public void setPersonGrossscore(Integer personGrossscore) { + this.personGrossscore = personGrossscore; + } + + public Integer getMeetingGrossscore() { + return meetingGrossscore; + } + + public void setMeetingGrossscore(Integer meetingGrossscore) { + this.meetingGrossscore = meetingGrossscore; + } + + public double getBossEveryone() { + return bossEveryone; + } + + public void setBossEveryone(double bossEveryone) { + this.bossEveryone = bossEveryone; + } +}