|
@@ -33,6 +33,13 @@ public class R {
|
|
|
return BaseResult.builder().code(BaseResult.SUCCESS).msg(BaseResult.OP_MSG_SUCC).data(data).build();
|
|
|
}
|
|
|
|
|
|
+ public static BaseResult succ(Object data, Object extData) {
|
|
|
+ if(data == null){
|
|
|
+ return succ();
|
|
|
+ }
|
|
|
+ return BaseResult.builder().code(BaseResult.SUCCESS).msg(BaseResult.OP_MSG_SUCC).data(data).extData(extData).build();
|
|
|
+ }
|
|
|
+
|
|
|
public static BaseResult succ(@NonNull String msg, @NonNull Object data) {
|
|
|
return BaseResult.builder().code(BaseResult.SUCCESS).msg(msg).data(data).build();
|
|
|
}
|