Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
7c35a79c
Commit
7c35a79c
authored
May 05, 2020
by
ZhengJie
Browse files
[新增功能](el-admin v2.5): v2.5 beta
详情
https://www.ydyno.com/archives/1225.html
parent
d35ffc9d
Changes
295
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/mnt/repository/DatabaseRepository.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.repository
;
package
me.zhengjie.modules.mnt.repository
;
import
me.zhengjie.modules.mnt.domain.Database
;
import
me.zhengjie.modules.mnt.domain.Database
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/repository/DeployHistoryRepository.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.repository
;
package
me.zhengjie.modules.mnt.repository
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/repository/DeployRepository.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.repository
;
package
me.zhengjie.modules.mnt.repository
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/repository/ServerDeployRepository.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.repository
;
package
me.zhengjie.modules.mnt.repository
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/rest/AppController.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.rest
;
package
me.zhengjie.modules.mnt.rest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.modules.mnt.domain.App
;
import
me.zhengjie.modules.mnt.domain.App
;
import
me.zhengjie.modules.mnt.service.AppService
;
import
me.zhengjie.modules.mnt.service.AppService
;
...
@@ -20,17 +36,14 @@ import java.util.Set;
...
@@ -20,17 +36,14 @@ import java.util.Set;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Api
(
tags
=
"应用管理"
)
@RestController
@RestController
@Api
(
tags
=
"运维:应用管理"
)
@RequiredArgsConstructor
@RequestMapping
(
"/api/app"
)
@RequestMapping
(
"/api/app"
)
public
class
AppController
{
public
class
AppController
{
private
final
AppService
appService
;
private
final
AppService
appService
;
public
AppController
(
AppService
appService
){
this
.
appService
=
appService
;
}
@Log
(
"导出应用数据"
)
@Log
(
"导出应用数据"
)
@ApiOperation
(
"导出应用数据"
)
@ApiOperation
(
"导出应用数据"
)
@GetMapping
(
value
=
"/download"
)
@GetMapping
(
value
=
"/download"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/rest/DatabaseController.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.rest
;
package
me.zhengjie.modules.mnt.rest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.exception.BadRequestException
;
import
me.zhengjie.exception.BadRequestException
;
import
me.zhengjie.modules.mnt.domain.Database
;
import
me.zhengjie.modules.mnt.domain.Database
;
...
@@ -27,19 +43,15 @@ import java.util.Set;
...
@@ -27,19 +43,15 @@ import java.util.Set;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Api
(
tags
=
"数据库管理"
)
@Api
(
tags
=
"
运维:
数据库管理"
)
@RestController
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/api/database"
)
@RequestMapping
(
"/api/database"
)
public
class
DatabaseController
{
public
class
DatabaseController
{
private
String
fileSavePath
=
System
.
getProperty
(
"java.io.tmpdir"
);
private
final
String
fileSavePath
=
System
.
getProperty
(
"java.io.tmpdir"
);
private
final
DatabaseService
databaseService
;
private
final
DatabaseService
databaseService
;
public
DatabaseController
(
DatabaseService
databaseService
)
{
this
.
databaseService
=
databaseService
;
}
@Log
(
"导出数据库数据"
)
@Log
(
"导出数据库数据"
)
@ApiOperation
(
"导出数据库数据"
)
@ApiOperation
(
"导出数据库数据"
)
@GetMapping
(
value
=
"/download"
)
@GetMapping
(
value
=
"/download"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/rest/DeployController.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.rest
;
package
me.zhengjie.modules.mnt.rest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
...
@@ -28,18 +44,15 @@ import java.util.Set;
...
@@ -28,18 +44,15 @@ import java.util.Set;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Api
(
tags
=
"部署管理"
)
@RestController
@RestController
@Api
(
tags
=
"运维:部署管理"
)
@RequiredArgsConstructor
@RequestMapping
(
"/api/deploy"
)
@RequestMapping
(
"/api/deploy"
)
public
class
DeployController
{
public
class
DeployController
{
private
String
fileSavePath
=
System
.
getProperty
(
"java.io.tmpdir"
);
private
final
String
fileSavePath
=
System
.
getProperty
(
"java.io.tmpdir"
);
private
final
DeployService
deployService
;
private
final
DeployService
deployService
;
public
DeployController
(
DeployService
deployService
)
{
this
.
deployService
=
deployService
;
}
@Log
(
"导出部署数据"
)
@Log
(
"导出部署数据"
)
@ApiOperation
(
"导出部署数据"
)
@ApiOperation
(
"导出部署数据"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/rest/DeployHistoryController.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.rest
;
package
me.zhengjie.modules.mnt.rest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.modules.mnt.service.DeployHistoryService
;
import
me.zhengjie.modules.mnt.service.DeployHistoryService
;
import
me.zhengjie.modules.mnt.service.dto.DeployHistoryQueryCriteria
;
import
me.zhengjie.modules.mnt.service.dto.DeployHistoryQueryCriteria
;
...
@@ -18,17 +34,14 @@ import java.util.Set;
...
@@ -18,17 +34,14 @@ import java.util.Set;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Api
(
tags
=
"部署历史管理"
)
@RestController
@RestController
@RequiredArgsConstructor
@Api
(
tags
=
"运维:部署历史管理"
)
@RequestMapping
(
"/api/deployHistory"
)
@RequestMapping
(
"/api/deployHistory"
)
public
class
DeployHistoryController
{
public
class
DeployHistoryController
{
private
final
DeployHistoryService
deployhistoryService
;
private
final
DeployHistoryService
deployhistoryService
;
public
DeployHistoryController
(
DeployHistoryService
deployhistoryService
)
{
this
.
deployhistoryService
=
deployhistoryService
;
}
@Log
(
"导出部署历史数据"
)
@Log
(
"导出部署历史数据"
)
@ApiOperation
(
"导出部署历史数据"
)
@ApiOperation
(
"导出部署历史数据"
)
@GetMapping
(
value
=
"/download"
)
@GetMapping
(
value
=
"/download"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/rest/ServerDeployController.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.rest
;
package
me.zhengjie.modules.mnt.rest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.aop.log.Log
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
import
me.zhengjie.modules.mnt.service.ServerDeployService
;
import
me.zhengjie.modules.mnt.service.ServerDeployService
;
...
@@ -20,17 +36,14 @@ import java.util.Set;
...
@@ -20,17 +36,14 @@ import java.util.Set;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Api
(
tags
=
"服务器管理"
)
@RestController
@RestController
@Api
(
tags
=
"运维:服务器管理"
)
@RequiredArgsConstructor
@RequestMapping
(
"/api/serverDeploy"
)
@RequestMapping
(
"/api/serverDeploy"
)
public
class
ServerDeployController
{
public
class
ServerDeployController
{
private
final
ServerDeployService
serverDeployService
;
private
final
ServerDeployService
serverDeployService
;
public
ServerDeployController
(
ServerDeployService
serverDeployService
)
{
this
.
serverDeployService
=
serverDeployService
;
}
@Log
(
"导出服务器数据"
)
@Log
(
"导出服务器数据"
)
@ApiOperation
(
"导出服务器数据"
)
@ApiOperation
(
"导出服务器数据"
)
@GetMapping
(
value
=
"/download"
)
@GetMapping
(
value
=
"/download"
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/AppService.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service
;
package
me.zhengjie.modules.mnt.service
;
import
me.zhengjie.modules.mnt.domain.App
;
import
me.zhengjie.modules.mnt.domain.App
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DatabaseService.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service
;
package
me.zhengjie.modules.mnt.service
;
import
me.zhengjie.modules.mnt.domain.Database
;
import
me.zhengjie.modules.mnt.domain.Database
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DeployHistoryService.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service
;
package
me.zhengjie.modules.mnt.service
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
import
me.zhengjie.modules.mnt.domain.DeployHistory
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/DeployService.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service
;
package
me.zhengjie.modules.mnt.service
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
import
me.zhengjie.modules.mnt.domain.Deploy
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/ServerDeployService.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service
;
package
me.zhengjie.modules.mnt.service
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
import
me.zhengjie.modules.mnt.domain.ServerDeploy
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/AppDto.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseDTO
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
/**
/**
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Data
@Getter
public
class
AppDto
implements
Serializable
{
@Setter
public
class
AppDto
extends
BaseDTO
implements
Serializable
{
/**
/**
* 应用编号
* 应用编号
...
@@ -53,6 +68,4 @@ public class AppDto implements Serializable {
...
@@ -53,6 +68,4 @@ public class AppDto implements Serializable {
*/
*/
private
String
deployScript
;
private
String
deployScript
;
private
Timestamp
createTime
;
}
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/AppQueryCriteria.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
lombok.Data
;
import
lombok.Data
;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.List
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/DatabaseDto.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseDTO
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
/**
/**
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Data
@Getter
public
class
DatabaseDto
implements
Serializable
{
@Setter
public
class
DatabaseDto
extends
BaseDTO
implements
Serializable
{
/**
/**
* id
* id
...
@@ -36,6 +52,4 @@ public class DatabaseDto implements Serializable {
...
@@ -36,6 +52,4 @@ public class DatabaseDto implements Serializable {
* 用户名
* 用户名
*/
*/
private
String
userName
;
private
String
userName
;
private
Timestamp
createTime
;
}
}
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/DatabaseQueryCriteria.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
lombok.Data
;
import
lombok.Data
;
import
me.zhengjie.annotation.Query
;
import
me.zhengjie.annotation.Query
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.List
;
import
java.util.List
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/DeployDto.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseDTO
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -12,8 +28,9 @@ import java.util.stream.Collectors;
...
@@ -12,8 +28,9 @@ import java.util.stream.Collectors;
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
*/
*/
@Data
@Getter
public
class
DeployDto
implements
Serializable
{
@Setter
public
class
DeployDto
extends
BaseDTO
implements
Serializable
{
/**
/**
* 部署编号
* 部署编号
...
@@ -34,8 +51,6 @@ public class DeployDto implements Serializable {
...
@@ -34,8 +51,6 @@ public class DeployDto implements Serializable {
*/
*/
private
String
status
;
private
String
status
;
private
Timestamp
createTime
;
public
String
getServers
()
{
public
String
getServers
()
{
if
(
CollectionUtil
.
isNotEmpty
(
deploys
)){
if
(
CollectionUtil
.
isNotEmpty
(
deploys
)){
return
deploys
.
stream
().
map
(
ServerDeployDto:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
return
deploys
.
stream
().
map
(
ServerDeployDto:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
...
...
eladmin-system/src/main/java/me/zhengjie/modules/mnt/service/dto/DeployHistoryDto.java
View file @
7c35a79c
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.modules.mnt.service.dto
;
package
me.zhengjie.modules.mnt.service.dto
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
/**
/**
* @author zhanghouying
* @author zhanghouying
* @date 2019-08-24
* @date 2019-08-24
...
...
Prev
1
2
3
4
5
6
7
8
9
…
15
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment