Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxueli committed Jun 9, 2024
1 parent b26c976 commit 69277a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/xxl/tool/response/ResponseBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public static ResponseBuilder newSuccessBuilder(){
.code(ResponseCode.CODE_200.getCode())
.msg(ResponseCode.CODE_200.getMsg());
}
public static ResponseBuilder newSuccessBuilder(Object data){
return new ResponseBuilder()
.code(ResponseCode.CODE_200.getCode())
.msg(ResponseCode.CODE_200.getMsg())
.data(data);
}
public static ResponseBuilder newFailBuilder(){
return new ResponseBuilder()
.code(ResponseCode.CODE_203.getCode())
Expand Down

0 comments on commit 69277a6

Please sign in to comment.