Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosn committed Dec 16, 2013
1 parent 661df66 commit 7fc67fd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Rigel Automation Platform
===

@version v0.6.0
@author Bosn Ma
@weibo http://weibo.com/bosn
@mail [email protected]
@version v0.7.0
@author Bosn(霍雍), wangjeaf(思竹)
@weibo http://weibo.com/bosn, http://github.com/wangjeaf
@mail [email protected], [email protected]

`RAP` 是一个WEB接口管理系统,可通过结构化的接口文档生成测试数据。

Expand Down
23 changes: 21 additions & 2 deletions src/com/taobao/rigel/rap/common/RapError.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,28 @@ public RapError(int code, String msg) {
}

private int code = 200;
public int getCode() {
return code;
}

public void setCode(int code) {
this.code = code;
}

private String msg = "";
private String result = "";

public String getResult() {
if (result == null || result.isEmpty()) {
return "\"\"";
}
return result;
}

public void setResult(String result) {
this.result = result;
}

public String getMsg() {
return msg;
}
Expand All @@ -29,8 +48,8 @@ public void setMsg(String msg) {
}

public String toString() {
return "{\"code\":" + this.code + ", \"msg\":\"" + msg + "\", \"result\":"
+ this.result + "}";
return "{\"code\":" + getCode() + ", \"msg\":\"" + getMsg() + "\", \"result\":"
+ getResult() + "}";
}

}

0 comments on commit 7fc67fd

Please sign in to comment.