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
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<List<DeployAppsVO>> getApplications(ServletRequest servletRequest) throws ServiceException {
        return R.data(deployAppsService.getApplications(servletRequest));
    }
 
}