pigflower пре 3 дана
родитељ
комит
ebc0176364

+ 3 - 1
x1-backstage/src/main/java/com/xiugou/x1/backstage/module/gameserver/BulletinController.java

@@ -60,13 +60,15 @@ public class BulletinController {
 			bulletin = new Bulletin();
 			bulletin.setTitle(form.getTitle());
 			bulletin.setContent(form.getContent());
+			bulletin.setVersionLog(form.getVersionLog());
 			bulletinService.insert(bulletin);
 		} else {
 			bulletin = bulletinService.getEntity(form.getId());
 			Asserts.isTrue(bulletin != null, TipsCode.BULLETIN_MISS, form.getId());
-			
+
 			bulletin.setTitle(form.getTitle());
 			bulletin.setContent(form.getContent());
+			bulletin.setVersionLog(form.getVersionLog());
 			bulletinService.update(bulletin);
 		}
 		return bulletin;

+ 1 - 0
x1-backstage/src/main/java/com/xiugou/x1/backstage/module/gameserver/GameServerController.java

@@ -263,6 +263,7 @@ public class GameServerController {
 		ServerList serverList = new ServerList();
 		serverList.setTitle(bulletin == null ? "" : bulletin.getTitle());
 		serverList.setContent(bulletin == null ? "" : bulletin.getContent());
+		serverList.setVersionLog(bulletin == null ? "" : bulletin.getVersionLog());
 		
 		if(versionId == null) {
 			versionId = 0;

+ 7 - 0
x1-backstage/src/main/java/com/xiugou/x1/backstage/module/gameserver/form/BulletinForm.java

@@ -11,6 +11,7 @@ public class BulletinForm {
 	private long id;
 	private String title;
 	private String content;
+	private String versionLog;
 	public long getId() {
 		return id;
 	}
@@ -29,4 +30,10 @@ public class BulletinForm {
 	public void setContent(String content) {
 		this.content = content;
 	}
+	public String getVersionLog() {
+		return versionLog;
+	}
+	public void setVersionLog(String versionLog) {
+		this.versionLog = versionLog;
+	}
 }

+ 8 - 0
x1-backstage/src/main/java/com/xiugou/x1/backstage/module/gameserver/model/Bulletin.java

@@ -24,6 +24,8 @@ public class Bulletin extends OneToManyRedisHashEntity {
 	private String title;
 	@Column(comment = "公告内容", extra = "text")
 	private String content;
+	@Column(name = "version_log", comment = "版本日志", extra = "text")
+	private String versionLog;
 	public long getId() {
 		return id;
 	}
@@ -42,6 +44,12 @@ public class Bulletin extends OneToManyRedisHashEntity {
 	public void setContent(String content) {
 		this.content = content;
 	}
+	public String getVersionLog() {
+		return versionLog;
+	}
+	public void setVersionLog(String versionLog) {
+		this.versionLog = versionLog;
+	}
 	@Override
 	public Long redisOwnerKey() {
 		return 0L;

+ 7 - 0
x1-backstage/src/main/java/com/xiugou/x1/backstage/module/gameserver/vo/ServerList.java

@@ -13,6 +13,7 @@ import java.util.List;
 public class ServerList {
 	private String title;
 	private String content;
+	private String versionLog;
 	private ArrayList<PlayerVo> players = new ArrayList<>();
 	private ArrayList<GameRegionVo> regions = new ArrayList<>();
 	private ArrayList<GameServerVo> servers = new ArrayList<>();
@@ -32,6 +33,12 @@ public class ServerList {
 	public void setContent(String content) {
 		this.content = content;
 	}
+	public String getVersionLog() {
+		return versionLog;
+	}
+	public void setVersionLog(String versionLog) {
+		this.versionLog = versionLog;
+	}
 	public ArrayList<GameRegionVo> getRegions() {
 		return regions;
 	}