fix 修复 R 参数位置错误
This commit is contained in:
parent
61e2a07ee2
commit
b7082c0eb4
@ -49,7 +49,7 @@ public class R<T> implements Serializable {
|
||||
return restResult(null, SUCCESS, msg);
|
||||
}
|
||||
|
||||
public static <T> R<T> ok(T data, String msg) {
|
||||
public static <T> R<T> ok(String msg, T data) {
|
||||
return restResult(data, SUCCESS, msg);
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ public class R<T> implements Serializable {
|
||||
return restResult(data, FAIL, null);
|
||||
}
|
||||
|
||||
public static <T> R<T> fail(T data, String msg) {
|
||||
public static <T> R<T> fail(String msg, T data) {
|
||||
return restResult(data, FAIL, msg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user