code review:营销活动+订单

This commit is contained in:
YunaiV
2023-09-09 01:27:55 +08:00
parent 5235aff8ad
commit 87c55784c4
18 changed files with 96 additions and 67 deletions

View File

@ -68,14 +68,6 @@ public class CommonResult<T> implements Serializable {
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());
}