| 程序包 | 说明 |
|---|---|
| top.tangyh.basic.base |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> R<E> |
R.fail(BaseExceptionCode exceptionCode) |
static <E> R<E> |
R.fail(BizException exception) |
static <E> R<E> |
R.fail(int code,
String msg)
请求失败消息
|
static <E> R<E> |
R.fail(int code,
String msg,
String errorMsg) |
static <E> R<E> |
R.fail(String msg) |
static <E> R<E> |
R.fail(String msg,
Object... args) |
static <E> R<E> |
R.fail(Throwable throwable)
请求失败消息,根据异常类型,获取不同的提供消息
|
R<T> |
R.put(String key,
Object value) |
R<T> |
R.putAll(Map<Object,Object> extra) |
static <E> R<E> |
R.result(int code,
E data,
String msg) |
static <E> R<E> |
R.result(int code,
E data,
String msg,
String errorMsg) |
static R<Boolean> |
R.success() |
static <E> R<E> |
R.success(E data)
请求成功消息
|
static <E> R<E> |
R.success(E data,
String msg)
请求成功方法 ,data返回值,msg提示信息
|
static <E> R<E> |
R.successDef() |
static <E> R<E> |
R.successDef(E data) |
static <E> R<E> |
R.successDef(E data,
String msg) |
static <E> R<E> |
R.timeout() |
static <E> R<E> |
R.validFail(BaseExceptionCode exceptionCode) |
static <E> R<E> |
R.validFail(String msg) |
static <E> R<E> |
R.validFail(String msg,
Object... args) |
Copyright © 2023. All rights reserved.