xin
2025-04-15 8342e6a5ed78fc007c45609507f0a914c43fec4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.oying.modules.maint.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oying.modules.maint.domain.Deploy;
import com.oying.modules.maint.domain.DeployHistory;
import com.oying.modules.maint.domain.dto.DeployQueryCriteria;
import com.oying.utils.PageResult;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Set;
 
/**
* @author Z
* @date 2019-08-24
*/
public interface DeployService extends IService<Deploy> {
 
    /**
     * 分页查询
     *
     * @param criteria 条件
     * @param page     分页参数
     * @return /
     */
    PageResult<Deploy> queryAll(DeployQueryCriteria criteria, Page<Object> page);
 
    /**
     * 查询全部数据
     * @param criteria 条件
     * @return /
     */
    List<Deploy> queryAll(DeployQueryCriteria criteria);
 
    /**
     * 创建
     * @param resources /
     */
    void create(Deploy resources);
 
 
    /**
     * 编辑
     * @param resources /
     */
    void update(Deploy resources);
 
    /**
     * 删除
     * @param ids /
     */
    void delete(Set<Long> ids);
 
    /**
     * 部署服务
     * @param fileSavePath /
     * @param appId /
     */
    void deploy(String fileSavePath, Long appId);
 
    /**
     * 查询部署状态
     * @param resources /
     * @return /
     */
    String serverStatus(Deploy resources);
    /**
     * 启动服务
     * @param resources /
     * @return /
     */
    String startServer(Deploy resources);
    /**
     * 停止服务
     * @param resources /
     * @return /
     */
    String stopServer(Deploy resources);
 
    /**
     * 停止服务
     * @param resources /
     * @return /
     */
    String serverReduction(DeployHistory resources);
 
    /**
     * 导出数据
     * @param queryAll /
     * @param response /
     * @throws IOException /
     */
    void download(List<Deploy> queryAll, HttpServletResponse response) throws IOException;
}