| 程序包 | 说明 |
|---|---|
| com.github.hetianyi.boot.ready.model.http |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Result<T> |
Result.accessDenied() |
static <T> Result<T> |
Result.accessDenied(String msg) |
Result<T> |
Result.CommonResponseBuilder.build() |
static <T> Result<T> |
Result.error()
Error response
|
static <T> Result<T> |
Result.error(String msg)
Error response
|
static <T> Result<T> |
Result.invalidCaptcha()
Invalid captcha
|
static <T> Result<T> |
Result.invalidParams(String msg)
Invalid parameter value
|
static <T> Result<T> |
Result.invalidUsernamePassword()
Invalid Username or password
|
static <T> Result<T> |
Result.success()
Success response
|
static <T> Result<T> |
Result.success(T data)
Success response with data
|
static <T> Result<T> |
Result.unauthorized() |
static <T> Result<T> |
Result.unauthorized(String msg) |
Copyright © 2022. All rights reserved.