添加状态检测
This commit is contained in:
@@ -46,7 +46,8 @@ public class AuthenticationFilter extends OncePerRequestFilter {
|
||||
"/api/python/saveGeneratePicture", "/api/python/getLibraryByUserId",
|
||||
"/api/third/party/addUser","/api/third/party/addTrialUser", "/api/third/party/editUser", "/api/element/initDefaultSysFile",
|
||||
"/api/python/chatStream",
|
||||
"/api/python/flush"
|
||||
"/api/python/flush",
|
||||
"/api/account/healthy"
|
||||
);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -13,12 +13,15 @@ import com.ai.da.service.AccountService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.validation.Valid;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Api(tags = "Account模块")
|
||||
@@ -125,4 +128,13 @@ public class AccountController {
|
||||
public Response<Boolean> switchIsAutoApproval() {
|
||||
return Response.success(accountService.switchIsAutoApproval());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "aws状态检测")
|
||||
@GetMapping("/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