Browse Source
Merge pull request #1486 from colinin/disable-api-key-audit-log
feat(ai): Disable API Key Auditlog
pull/1492/head
yx lin
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
0 deletions
-
aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Application.Contracts/LINGYUN/Abp/AIManagement/Workspaces/Dtos/WorkspaceDefinitionRecordCreateOrUpdateDto.cs
-
aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Domain/LINGYUN/Abp/AIManagement/Workspaces/WorkspaceDefinitionRecord.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using Volo.Abp.Auditing; |
|
|
|
using Volo.Abp.ObjectExtending; |
|
|
|
using Volo.Abp.Validation; |
|
|
|
|
|
|
|
@ -20,6 +21,7 @@ public abstract class WorkspaceDefinitionRecordCreateOrUpdateDto : ExtensibleObj |
|
|
|
[DynamicStringLength(typeof(WorkspaceDefinitionRecordConsts), nameof(WorkspaceDefinitionRecordConsts.MaxDescriptionLength))] |
|
|
|
public string? Description { get; set; } |
|
|
|
|
|
|
|
[DisableAuditing] |
|
|
|
[DynamicStringLength(typeof(WorkspaceDefinitionRecordConsts), nameof(WorkspaceDefinitionRecordConsts.MaxApiKeyLength))] |
|
|
|
public string? ApiKey { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Auditing; |
|
|
|
using Volo.Abp.Data; |
|
|
|
using Volo.Abp.Domain.Entities.Auditing; |
|
|
|
|
|
|
|
@ -16,6 +17,7 @@ public class WorkspaceDefinitionRecord : AuditedAggregateRoot<Guid> |
|
|
|
|
|
|
|
public string? Description { get; set; } |
|
|
|
|
|
|
|
[DisableAuditing] |
|
|
|
public string? ApiKey { get; private set; } |
|
|
|
|
|
|
|
public string? ApiBaseUrl { get; private set; } |
|
|
|
|