ludc
2024-02-29 eada8c650d43765a6bf0993af5fb771b8c0b363c
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
package com.vci.ubcs.deploy.service;
 
import com.alibaba.nacos.shaded.com.google.protobuf.ServiceException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vci.ubcs.deploy.entity.DeployApps;
import com.vci.ubcs.deploy.vo.DeployAppsVO;
import org.apache.http.auth.AuthenticationException;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.ServletRequest;
import java.util.List;
 
/**
 * @author ludc
 * @date 2024/1/7 19:54
 */
public interface IDeployAppsService extends IService<DeployApps> {
 
    /**
     * 获取正在运行的服务相关信息
     * @param servletRequest
     * @return
     * @throws ServiceException
     */
    List<DeployAppsVO> getApplications(ServletRequest servletRequest) throws ServiceException;
 
    /**
     * 根据服务名称获取或服务配置信息
     * @param deployAppsVO
     * @return
     * @throws ServiceException
     */
    DeployApps saveOrGetServiceConfInfo(DeployAppsVO deployAppsVO) throws ServiceException;
 
    /**
     * 修改或保存
     * @param deployAppsVO
     * @return
     * @throws ServiceException
     */
    boolean saveOrUpdateServiceInfo(DeployAppsVO deployAppsVO) throws ServiceException;
 
    /**
     * 新增服务信息
     * @param deployApps
     * @return
     * @throws ServiceException
     */
    boolean addSave(DeployApps deployApps) throws ServiceException;
 
    /**
     * 更新文件上传
     * @param files
     * @param serverName
     * @return
     */
    R importClassify(MultipartFile[] files, String serverName) throws ServiceException;
 
    /**
     * 执行命令
     * @param deployAppsVO
     * @return
     */
    R cmdExecute(DeployAppsVO deployAppsVO)throws ServiceException;
 
}