public class RETURN extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static RETURN |
EXCEPTION |
static RETURN |
EXPRESSION |
static RETURN |
FAIL |
static RETURN |
LOGOUT_SUCCESS |
static RETURN |
PARAMETER_ERROR |
static RETURN |
SUCCESS |
| 限定符和类型 | 方法和说明 |
|---|---|
static RETURN |
byMessage(org.springframework.http.HttpStatus status,
String message)
根据国际化文件当中的key值与占位参数,获取国际化文,返回RETURN
|
static RETURN |
byMessage(String defaultValue,
org.springframework.http.HttpStatus status,
String key,
String... params)
根据国际化文件当中的key值与占位参数,获取国际化文,返回RETURN
|
static RETURN |
byMessage(String key,
Object... params) |
static RETURN |
byMessageWithDefault(String defaultValue,
String key) |
String |
getCode() |
String |
getIp() |
String |
getMsg() |
org.springframework.http.HttpStatus |
getStatus() |
static RETURN |
of(String code,
String msg) |
static RETURN |
of(String code,
String msg,
org.springframework.http.HttpStatus status) |
public static final RETURN SUCCESS
public static final RETURN LOGOUT_SUCCESS
public static final RETURN FAIL
public static final RETURN PARAMETER_ERROR
public static final RETURN EXPRESSION
public static final RETURN EXCEPTION
public static RETURN byMessage(String defaultValue, org.springframework.http.HttpStatus status, String key, String... params)
key - 国际化文档中的key值params - 占位参数public static RETURN byMessage(org.springframework.http.HttpStatus status, String message)
status - 响应状态message - 相应信息public String getCode()
public String getMsg()
public org.springframework.http.HttpStatus getStatus()
public String getIp()
Copyright © 2022. All rights reserved.