太空舱订单状态修改

This commit is contained in:
qjq
2024-11-01 16:48:09 +08:00
parent 0102132901
commit 8a65561970
3 changed files with 8 additions and 3 deletions

View File

@ -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());
}