ludc
2024-02-24 156e136377680ac2dd5ad89735b7273db6f6d1d5
Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/IDeployAppsService.java
@@ -5,6 +5,9 @@
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;
@@ -15,6 +18,51 @@
 */
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;
}