修改了新鲜事儿数据结构

This commit is contained in:
董宏宇
2020-01-17 11:42:59 +08:00
parent 9b712ff071
commit bf3b679f5d

View File

@@ -7,14 +7,12 @@ package com.mogo.module.common.entity;
public class MarkerNoveltyInfo {
private String type;
private MarkerLocation location;
private MarkerUserInfo userInfo;
/**
* @see MarkerPoiTypeEnum
*/
private String poiType;
private ContentData contentData;
public ContentData getContentData() {
return contentData;
}
@@ -47,21 +45,16 @@ public class MarkerNoveltyInfo {
this.type = type;
}
public MarkerUserInfo getUserInfo() {
return userInfo;
}
public void setUserInfo(MarkerUserInfo userInfo) {
this.userInfo = userInfo;
}
public class ContentData {
private String content;
private String iconUrl;
private String imgUrl;
private String infoId;
private Long likeNum;
private long likeNum;
private String title;
private boolean displayNavigation;
private String styleType;
public String getContent() {
return content;
@@ -95,11 +88,11 @@ public class MarkerNoveltyInfo {
this.infoId = infoId;
}
public Long getLikeNum() {
public long getLikeNum() {
return likeNum;
}
public void setLikeNum(Long likeNum) {
public void setLikeNum(long likeNum) {
this.likeNum = likeNum;
}
@@ -111,5 +104,44 @@ public class MarkerNoveltyInfo {
this.title = title;
}
public boolean isDisplayNavigation() {
return displayNavigation;
}
public void setDisplayNavigation(boolean displayNavigation) {
this.displayNavigation = displayNavigation;
}
public String getStyleType() {
return styleType;
}
public void setStyleType(String styleType) {
this.styleType = styleType;
}
@Override
public String toString() {
return "ContentData{" +
"content='" + content + '\'' +
", iconUrl='" + iconUrl + '\'' +
", imgUrl='" + imgUrl + '\'' +
", infoId='" + infoId + '\'' +
", likeNum=" + likeNum +
", title='" + title + '\'' +
", displayNavigation=" + displayNavigation +
", styleType='" + styleType + '\'' +
'}';
}
}
@Override
public String toString() {
return "MarkerNoveltyInfo{" +
"type='" + type + '\'' +
", location=" + location +
", poiType='" + poiType + '\'' +
", contentData=" + contentData +
'}';
}
}