package com.vci.ubcs.deploy.controller; import com.alibaba.nacos.shaded.com.google.protobuf.ServiceException; import com.vci.ubcs.deploy.entity.DeployApps; import com.vci.ubcs.deploy.service.IDeployAppsService; import com.vci.ubcs.deploy.vo.DeployAppsVO; import io.swagger.annotations.Api; import lombok.AllArgsConstructor; import org.apache.http.auth.AuthenticationException; import org.springblade.core.tenant.annotation.NonDS; import org.springblade.core.tool.api.R; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; import javax.servlet.ServletRequest; import java.util.List; /** * 服务远程更新部署 * @author ludc * @date 2024/1/7 0:24 */ @NonDS @RestController @AllArgsConstructor @RequestMapping("/deploy") @ApiIgnore @Api(value = "应用管理", tags = "接口") public class DeployAppsController { private final IDeployAppsService deployAppsService; @GetMapping("/applications") public R> getApplications(ServletRequest servletRequest) throws ServiceException { return R.data(deployAppsService.getApplications(servletRequest)); } }