public static ReturnT <T> Error <T>(this ReturnT <T> returnT) { returnT.Code = (int)ErrorEnum.未知错误; returnT.IsSuccess = false; returnT.Message = ErrorEnum.未知错误.ToString(); return(returnT); }
public static ReturnT <T> Success <T>(this ReturnT <T> returnT, T data) { returnT.Success(); returnT.Data = data; return(returnT); }