类的使用
cloud.opencode.base.basecode.CodeResult
使用CodeResult的程序包
-
cloud.opencode.base.basecode中CodeResult的使用
修饰符和类型方法说明static CodeResultCodeResult.ERROR()ERRORstatic CodeResultERRORstatic CodeResultERRORstatic CodeResultERRORstatic CodeResultCodeResult.ERROR(org.springframework.http.HttpStatus status, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers) ERRORstatic CodeResultCodeResult.OK()OKstatic <T> CodeResultCodeResult.OK(T data) OKstatic <T> CodeResultOKstatic <T> CodeResultOKstatic <T> CodeResultCodeResult.OK(T data, Long total, Long page, Long pageSize, String message, Integer code, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers) OKstatic <T> CodeResultOKstatic <T> CodeResultOKstatic <T> CodeResultOKstatic <T> CodeResultOKstatic <T> CodeResultCodeResult.OK(T data, org.springframework.http.HttpStatus status) OKstatic <T> CodeResultCodeResult.OK(T data, org.springframework.http.MediaType type) OKstatic <T> CodeResultCodeResult.OK(T data, org.springframework.http.MediaType type, org.springframework.http.HttpStatus status) OKstatic <T> CodeResultCodeResult.OK(T data, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers) OKstatic <T> CodeResultCodeResult.OK(T data, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers, org.springframework.http.HttpStatus status) OKstatic <T> CodeResultCodeResult.OKOnlyStatus(org.springframework.http.HttpStatus status) OKstatic <T> CodeResultCodeResult.OKWithMediaTypeAndHeaders(T data, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers) OKWithMediaTypeAndHeadersstatic <T> CodeResultCodeResult.OKWithMediaTypeAndHeaders(T data, org.springframework.http.MediaType type, org.springframework.util.MultiValueMap<String, String> headers, org.springframework.http.HttpStatus status) OKWithMediaTypeAndHeadersstatic <T> CodeResultCodeResult.OKWithoutStatus(T data) OK -
cloud.opencode.base.basecode.handler中CodeResult的使用
修饰符和类型方法说明CodeExceptionHandler.handleCodeException(CodeException e) handler exceptionCodeExceptionHandler.handleException(Exception e) handler ExceptionCodeExceptionHandler.handleIllegalArgumentException(IllegalArgumentException e) handler exceptionCodeExceptionHandler.handleNullPointerException(NullPointerException e) handler exceptionCodeExceptionHandler.handlerHttpMediaTypeNotSupportedException(org.springframework.web.HttpMediaTypeNotSupportedException e) handler exceptionCodeExceptionHandler.handlerNoFoundException(org.springframework.web.servlet.NoHandlerFoundException e) handler exceptioinCodeExceptionHandler.handleRuntimeException(RuntimeException e) handler ExceptionCodeExceptionHandler.handleSecurityException(SecurityException e) handler exception