/// <summary> /// 更新ErrorCode /// </summary> /// <param name="domain"></param> public bool Update(ErrorCode errorCode) { return false; }
public static DBError ToDBErrorModel(Guid apiDocid, ErrorCode errorCode) { if (errorCode == null) return null; return new DBError { Description = errorCode.Description, DomainId = errorCode.DomainId.Value, ErrorCode = errorCode.Code, Message = errorCode.Message, APIDocs = new List<DBAPIDoc>() { new DBAPIDoc(){ APIDocId = apiDocid } } }; }
/// <summary> /// 创建ErrorCode /// </summary> /// <param name="domain"></param> public bool Insert(ErrorCode errorCode, Id apiDocId = null) { return false; }