Add version for EnvironmentDTO.

pull/157/head
ruibaby 2019-05-11 23:59:07 +08:00
parent 077bf14792
commit d0e4046257
3 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'run.halo.app'
archivesBaseName = 'halo'
version = '1.0.0-beta.3'
version = '1.0.0-beta.4'
sourceCompatibility = '1.8'
description = 'Halo, personal blog system developed in Java.'

View File

@ -14,4 +14,6 @@ public class EnvironmentDTO {
private String database;
private long startTime;
private String version;
}

View File

@ -15,6 +15,7 @@ import run.halo.app.model.entity.User;
import run.halo.app.model.enums.CommentStatus;
import run.halo.app.model.enums.PostStatus;
import run.halo.app.model.params.LoginParam;
import run.halo.app.model.support.HaloConst;
import run.halo.app.security.authentication.Authentication;
import run.halo.app.security.context.SecurityContextHolder;
import run.halo.app.security.token.AuthToken;
@ -181,6 +182,8 @@ public class AdminServiceImpl implements AdminService {
environmentDTO.setDatabase("org.h2.Driver".equals(driverClassName) ? "H2" : "MySQL");
environmentDTO.setVersion(HaloConst.HALO_VERSION);
return environmentDTO;
}