添加状态检测

This commit is contained in:
2023-12-29 13:19:48 +08:00
parent eb45f6e7d0
commit 4b1974aceb

View File

@@ -13,12 +13,15 @@ import com.ai.da.service.AccountService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
@Api(tags = "Account模块") @Api(tags = "Account模块")
@@ -125,4 +128,13 @@ public class AccountController {
public Response<Boolean> switchIsAutoApproval() { public Response<Boolean> switchIsAutoApproval() {
return Response.success(accountService.switchIsAutoApproval()); return Response.success(accountService.switchIsAutoApproval());
} }
@ApiOperation(value = "aws状态检测")
@PostMapping("/healthy")
@ResponseStatus(HttpStatus.OK)
public Response<Map<String,Integer>> checkStatus(){
Map<String,Integer> returnMap = new HashMap<>();
returnMap.put("code",200);
return Response.success(returnMap);
}
} }