Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
83f8b83e
Commit
83f8b83e
authored
Aug 14, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常规BUG的修改
parent
307737c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ResponseResult.java
...src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
+5
-3
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
View file @
83f8b83e
...
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
import
com.yanzuoguang.util.contants.ResultConstants
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
/**
...
...
@@ -9,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
*
* @author 颜佐光
*/
@ApiModel
(
value
=
"后台通用返回接口"
)
public
class
ResponseResult
<
T
>
extends
BaseVo
{
private
static
final
long
serialVersionUID
=
-
508702000019378459L
;
...
...
@@ -16,13 +18,13 @@ public class ResponseResult<T> extends BaseVo {
/**
* 请求状态码
*/
@ApiModelProperty
(
value
=
"状态"
,
notes
=
"00表示成功,其他状态表示失败,具体含义参照具体实现接口"
,
required
=
true
,
example
=
"00"
)
@ApiModelProperty
(
value
=
"
返回
状态"
,
notes
=
"00表示成功,其他状态表示失败,具体含义参照具体实现接口"
,
required
=
true
,
example
=
"00"
)
private
String
code
;
/**
* 服务消息
*/
@ApiModelProperty
(
value
=
"消息"
,
notes
=
"提示错误消息等等"
,
required
=
true
,
example
=
"查询成功"
)
@ApiModelProperty
(
value
=
"
错误
消息"
,
notes
=
"提示错误消息等等"
,
required
=
true
,
example
=
"查询成功"
)
private
String
message
;
/**
...
...
@@ -34,7 +36,7 @@ public class ResponseResult<T> extends BaseVo {
/**
* 数据源,用于显示异常数据
*/
@ApiModelProperty
(
value
=
"异常
时
数据"
,
notes
=
"当抛出异常时的数据,通常和code进行组合"
,
required
=
true
)
@ApiModelProperty
(
value
=
"异常数据"
,
notes
=
"当抛出异常时的数据,通常和code进行组合"
,
required
=
true
)
private
Object
target
;
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment