mirror of https://github.com/halo-dev/halo
Add version for EnvironmentDTO.
parent
077bf14792
commit
d0e4046257
|
@ -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.'
|
||||
|
||||
|
|
|
@ -14,4 +14,6 @@ public class EnvironmentDTO {
|
|||
private String database;
|
||||
|
||||
private long startTime;
|
||||
|
||||
private String version;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue