Commit b95225bc authored by yanzg's avatar yanzg

接口文档的支持

parent a841e101
......@@ -40,11 +40,11 @@ public class ResponseResult<T> extends BaseVo {
private Object target;
/**
* 检查数据是否合法,不合法则抛出异常
* 检查数据是否合法,不合法则抛出异常,合法则返回数据
*/
public void check() {
public T check() {
if (StringHelper.compare(code, ResultConstants.SUCCESS)) {
return;
return this.data;
}
throw new CodeException(this.code, this.message, this.target);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment