添加状态检测
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user