This commit is contained in:
2026-08-31 14:42:22 +08:00
72 changed files with 2479 additions and 168 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ namespace IM.Commons
public static Result<T> Success<T>(T? data = default) => new((int)ResultCode.SUCCESS, ResultCode.SUCCESS.GetDescription(), data);
public static Result<object> Success() => new((int)ResultCode.SUCCESS, ResultCode.SUCCESS.GetDescription(), null);
public static Result<T> Fail<T>(ResultCode code) => new((int)code, code.GetDescription());
public static Result<object> Fail(ResultCode code) => new((int)code, code.GetDescription());
public static Result<T> Fail<T>(ResultCode code, string errorMsg) => new((int)code, errorMsg);