类的使用
com.alibaba.nacos.api.model.v2.Result
使用Result的程序包
-
com.alibaba.nacos.api.model.v2中Result的使用
修饰符和类型方法说明static <T> Result<T>Failed return with errorCode and message.static <T> Result<T>Failed return with errorCode, message and data.static <T> Result<T>Failed return with code, message and data.Failed return with message and detail error information.static <T> Result<T>Result.success()Success return with nothing.static <T> Result<T>Result.success(T data) Success return with data.