fix 修复 R 参数位置错误
parent
ce4b5b9624
commit
2b4de7c5ea
|
|
@ -50,7 +50,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);
|
||||
}
|
||||
|
||||
|
|
@ -66,7 +66,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…
Reference in New Issue