将地图Marker对象需要下沉到mogo-module-common

This commit is contained in:
董宏宇
2020-01-10 10:47:05 +08:00
parent d879b09075
commit f37c246956
19 changed files with 74 additions and 125 deletions

View File

@@ -0,0 +1,36 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerActivitiesScope implements Serializable {
private String content;
private int isCheck;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getIsCheck() {
return isCheck;
}
public void setIsCheck(int isCheck) {
this.isCheck = isCheck;
}
@Override
public String toString() {
return "MarkerActivitiesScope{" +
"content='" + content + '\'' +
", isCheck=" + isCheck +
'}';
}
}

View File

@@ -0,0 +1,46 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerCarChat implements Serializable {
private MarkerLocation location;
private String type;
private MarkerUserInfo userInfo;
public MarkerLocation getLocation() {
return location;
}
public void setLocation(MarkerLocation location) {
this.location = location;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MarkerUserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(MarkerUserInfo userInfo) {
this.userInfo = userInfo;
}
@Override
public String toString() {
return "MarkerCarChat{" +
"location=" + location +
", type='" + type + '\'' +
", userInfo=" + userInfo +
'}';
}
}

View File

@@ -0,0 +1,36 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerCarInfo implements Serializable {
private String carBrandLogoUrl;
private String carTypeName;
public String getCarBrandLogoUrl() {
return carBrandLogoUrl;
}
public void setCarBrandLogoUrl(String carBrandLogoUrl) {
this.carBrandLogoUrl = carBrandLogoUrl;
}
public String getCarTypeName() {
return carTypeName;
}
public void setCarTypeName(String carTypeName) {
this.carTypeName = carTypeName;
}
@Override
public String toString() {
return "MarkerCarInfo{" +
"carBrandLogoUrl='" + carBrandLogoUrl + '\'' +
", carTypeName='" + carTypeName + '\'' +
'}';
}
}

View File

@@ -0,0 +1,56 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
import java.util.List;
@SuppressWarnings("unused")
public class MarkerCardResult implements Serializable {
private List<MarkerCarChat> carChat;
private List<MarkerExploreWay> exploreWay;
private List<MarkerOnlineCar> onlineCar;
private List<MarkerShareMusic> shareMusic;
public List<MarkerCarChat> getCarChat() {
return carChat;
}
public void setCarChat(List<MarkerCarChat> carChat) {
this.carChat = carChat;
}
public List<MarkerExploreWay> getExploreWay() {
return exploreWay;
}
public void setExploreWay(List<MarkerExploreWay> exploreWay) {
this.exploreWay = exploreWay;
}
public List<MarkerOnlineCar> getOnlineCar() {
return onlineCar;
}
public void setOnlineCar(List<MarkerOnlineCar> onlineCar) {
this.onlineCar = onlineCar;
}
public List<MarkerShareMusic> getShareMusic() {
return shareMusic;
}
public void setShareMusic(List<MarkerShareMusic> shareMusic) {
this.shareMusic = shareMusic;
}
@Override
public String toString() {
return "MarkerCardResult{" +
"carChat=" + carChat +
", exploreWay=" + exploreWay +
", onlineCar=" + onlineCar +
", shareMusic=" + shareMusic +
'}';
}
}

View File

@@ -0,0 +1,46 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerDynamicData implements Serializable {
private Long id;
private String name;
private Long type;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Long getType() {
return type;
}
public void setType(Long type) {
this.type = type;
}
@Override
public String toString() {
return "MarkerDynamicData{" +
"id=" + id +
", name='" + name + '\'' +
", type=" + type +
'}';
}
}

View File

@@ -0,0 +1,148 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
import java.util.List;
@SuppressWarnings("unused")
public class MarkerExploreWay implements Serializable {
private String addr;
private Long canLive;
private String cityName;
private Long direction;
private Long distance;
private Long fileType;
private Long generateTime;
private List<MarkerExploreWayItem> items;
private MarkerLocation location;
private String sn;
private String type;
private MarkerUserInfo userInfo;
public String getAddr() {
return addr;
}
public void setAddr(String addr) {
this.addr = addr;
}
public Long getCanLive() {
return canLive;
}
public void setCanLive(Long canLive) {
this.canLive = canLive;
}
public String getCityName() {
return cityName;
}
public void setCityName(String cityName) {
this.cityName = cityName;
}
public Long getDirection() {
return direction;
}
public void setDirection(Long direction) {
this.direction = direction;
}
public Long getDistance() {
return distance;
}
public void setDistance(Long distance) {
this.distance = distance;
}
public Long getFileType() {
return fileType;
}
public void setFileType(Long fileType) {
this.fileType = fileType;
}
public Long getGenerateTime() {
return generateTime;
}
public void setGenerateTime(Long generateTime) {
this.generateTime = generateTime;
}
public List<MarkerExploreWayItem> getItems() {
return items;
}
public void setItems(List<MarkerExploreWayItem> items) {
this.items = items;
}
public MarkerLocation getLocation() {
return location;
}
public void setLocation(MarkerLocation location) {
this.location = location;
}
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MarkerUserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(MarkerUserInfo userInfo) {
this.userInfo = userInfo;
}
@Override
public String toString() {
return "MarkerExploreWay{" +
"addr='" + addr + '\'' +
", canLive=" + canLive +
", cityName='" + cityName + '\'' +
", direction=" + direction +
", distance=" + distance +
", fileType=" + fileType +
", generateTime=" + generateTime +
", items=" + items +
", location=" + location +
", sn='" + sn + '\'' +
", type='" + type + '\'' +
", userInfo=" + userInfo +
'}';
}
}

View File

@@ -0,0 +1,38 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerExploreWayItem implements Serializable {
private String thumbnail;
private String url;
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
@Override
public String toString() {
return "MarkerExploreWayItem{" +
"thumbnail='" + thumbnail + '\'' +
", url='" + url + '\'' +
'}';
}
}

View File

@@ -0,0 +1,38 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerHobbyDatum implements Serializable {
private String content;
private int isCheck;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getIsCheck() {
return isCheck;
}
public void setIsCheck(int isCheck) {
this.isCheck = isCheck;
}
@Override
public String toString() {
return "MarkerHobbyDatum{" +
"content='" + content + '\'' +
", isCheck=" + isCheck +
'}';
}
}

View File

@@ -0,0 +1,56 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerLocation implements Serializable {
private String address;
private Double angle;
private Double lat;
private Double lon;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Double getAngle() {
return angle;
}
public void setAngle(Double angle) {
this.angle = angle;
}
public Double getLat() {
return lat;
}
public void setLat(Double lat) {
this.lat = lat;
}
public Double getLon() {
return lon;
}
public void setLon(Double lon) {
this.lon = lon;
}
@Override
public String toString() {
return "MarkerLocation{" +
"address='" + address + '\'' +
", angle=" + angle +
", lat=" + lat +
", lon=" + lon +
'}';
}
}

View File

@@ -0,0 +1,115 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
import java.util.List;
@SuppressWarnings("unused")
public class MarkerOnlineCar implements Serializable {
private List<MarkerActivitiesScope> activitiesScope;
private MarkerCarInfo carInfo;
private String compatibility;
private MarkerDynamicData dynamicData;
private List<MarkerHobbyDatum> hobbyData;
private Long isFocus;
private MarkerLocation location;
private String type;
private MarkerUserInfo userInfo;
public List<MarkerActivitiesScope> getActivitiesScope() {
return activitiesScope;
}
public void setActivitiesScope(List<MarkerActivitiesScope> activitiesScope) {
this.activitiesScope = activitiesScope;
}
public MarkerCarInfo getCarInfo() {
return carInfo;
}
public void setCarInfo(MarkerCarInfo carInfo) {
this.carInfo = carInfo;
}
public String getCompatibility() {
return compatibility;
}
public void setCompatibility(String compatibility) {
this.compatibility = compatibility;
}
public MarkerDynamicData getDynamicData() {
return dynamicData;
}
public void setDynamicData(MarkerDynamicData dynamicData) {
this.dynamicData = dynamicData;
}
public List<MarkerHobbyDatum> getHobbyData() {
return hobbyData;
}
public void setHobbyData(List<MarkerHobbyDatum> hobbyData) {
this.hobbyData = hobbyData;
}
public Long getIsFocus() {
return isFocus;
}
public void setIsFocus(Long isFocus) {
this.isFocus = isFocus;
}
public MarkerLocation getLocation() {
return location;
}
public void setLocation(MarkerLocation location) {
this.location = location;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MarkerUserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(MarkerUserInfo userInfo) {
this.userInfo = userInfo;
}
@Override
public String toString() {
return "MarkerOnlineCar{" +
"activitiesScope=" + activitiesScope +
", carInfo=" + carInfo +
", compatibility='" + compatibility + '\'' +
", dynamicData=" + dynamicData +
", hobbyData=" + hobbyData +
", isFocus=" + isFocus +
", location=" + location +
", type='" + type + '\'' +
", userInfo=" + userInfo +
'}';
}
}

View File

@@ -0,0 +1,56 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerResponse implements Serializable {
private Long code;
private String msg;
private MarkerCardResult result;
private String sign;
public Long getCode() {
return code;
}
public void setCode(Long code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public MarkerCardResult getResult() {
return result;
}
public void setResult(MarkerCardResult result) {
this.result = result;
}
public String getSign() {
return sign;
}
public void setSign(String sign) {
this.sign = sign;
}
@Override
public String toString() {
return "MarkerResponse{" +
"code=" + code +
", msg='" + msg + '\'' +
", result=" + result +
", sign='" + sign + '\'' +
'}';
}
}

View File

@@ -0,0 +1,93 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
@SuppressWarnings("unused")
public class MarkerShareMusic implements Serializable {
private Long id;
private Long likeNumber;
private MarkerLocation location;
private String musicName;
private String shareContentText;
private String type;
private MarkerUserInfo userInfo;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getLikeNumber() {
return likeNumber;
}
public void setLikeNumber(Long likeNumber) {
this.likeNumber = likeNumber;
}
public MarkerLocation getLocation() {
return location;
}
public void setLocation(MarkerLocation location) {
this.location = location;
}
public String getMusicName() {
return musicName;
}
public void setMusicName(String musicName) {
this.musicName = musicName;
}
public String getShareContentText() {
return shareContentText;
}
public void setShareContentText(String shareContentText) {
this.shareContentText = shareContentText;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MarkerUserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(MarkerUserInfo userInfo) {
this.userInfo = userInfo;
}
@Override
public String toString() {
return "MarkerShareMusic{" +
"id=" + id +
", likeNumber=" + likeNumber +
", location=" + location +
", musicName='" + musicName + '\'' +
", shareContentText='" + shareContentText + '\'' +
", type='" + type + '\'' +
", userInfo=" + userInfo +
'}';
}
}

View File

@@ -0,0 +1,130 @@
package com.mogo.module.common.entity;
import java.io.Serializable;
import java.util.Calendar;
@SuppressWarnings("unused")
public class MarkerUserInfo implements Serializable {
private int age;
private String gender;
private String sn;
private String userHead;
private Long userId;
private String userName;
public String getAge() {
Calendar cal = Calendar.getInstance();
int year = cal.get(Calendar.YEAR);
//2020-30=1990
int ageDiffer = year - age;
String ageStr = "" + ageDiffer;
char[] ageChars = ageStr.toCharArray();
//1990
char ageChar = ageChars[2];
String ageString = "未知";
switch (ageChar) {
case '0':
ageString = "00后";
break;
case '1':
ageString = "10后";
break;
case '2':
ageString = "20后";
break;
case '3':
ageString = "30后";
break;
case '4':
ageString = "40后";
break;
case '5':
ageString = "50后";
break;
case '6':
ageString = "60后";
break;
case '7':
ageString = "70后";
break;
case '8':
ageString = "80后";
break;
case '9':
ageString = "90后";
break;
}
return ageString;
}
public void setAge(int age) {
this.age = age;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public String getUserHead() {
return userHead;
}
public void setUserHead(String userHead) {
this.userHead = userHead;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
@Override
public String toString() {
return "MarkerUserInfo{" +
"age=" + age +
", gender='" + gender + '\'' +
", sn='" + sn + '\'' +
", userHead='" + userHead + '\'' +
", userId=" + userId +
", userName='" + userName + '\'' +
'}';
}
}