Class Response
java.lang.Object
com.github.theword.queqiao.tool.response.Response
Response
code:返回值
message:返回信息
data:数据
echo:请求的echo,从请求中获取
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Response
static Response
static Response
static Response
getCode()
getData()
getEcho()
void
void
void
void
setMessage
(String message) void
setPostType
(String postType) void
setStatus
(ResponseEnum status) static Response
success()
static Response
static Response
static Response
static Response
successMessage
(String message)
-
Constructor Details
-
Response
public Response() -
Response
全参构造器- Parameters:
code
- HTTP 风格的返回码或状态码status
- 响应状态枚举message
- 响应信息data
- 响应数据负载echo
- 请求的 echo 值(回声)
-
-
Method Details
-
getCode
-
setCode
-
getPostType
-
setPostType
-
getStatus
-
setStatus
-
getMessage
-
setMessage
-
getData
-
setData
-
getEcho
-
setEcho
-
success
-
success
-
failed
-
failed
-
success
-
success
-
successMessage
-
failed
-
failed
-