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;
|
|
}
|