Result success()统一结果封装

```java public class Result {

private boolean success;

private int code;

private String msg;

private Object data;

public static Result success(Object data) {
    return new Result(true, 200, "success", data);
}

public static Result fail(int code, String msg) {
    return new Result(false, code, msg, null);
}

} ```

你可能感兴趣的:(java,vue,android,spring,boot,封装)