太空舱订单状态修改
This commit is contained in:
@ -67,7 +67,13 @@ public class CommonResult<T> implements Serializable {
|
||||
result.msg = "";
|
||||
return result;
|
||||
}
|
||||
|
||||
public static <T> CommonResult<T> success(T data,String msg) {
|
||||
CommonResult<T> result = new CommonResult<>();
|
||||
result.code = GlobalErrorCodeConstants.SUCCESS.getCode();
|
||||
result.data = data;
|
||||
result.msg = msg;
|
||||
return result;
|
||||
}
|
||||
public static boolean isSuccess(Integer code) {
|
||||
return Objects.equals(code, GlobalErrorCodeConstants.SUCCESS.getCode());
|
||||
}
|
||||
|
Reference in New Issue
Block a user