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