Browse Source

update common.props

pull/699/head
cKey 3 years ago
parent
commit
470d07ec07
  1. 28
      apps/vue/src/api/auditing/auditLog.ts
  2. 19
      apps/vue/src/api/auditing/model/auditLogModel.ts
  3. 2
      aspnet-core/Directory.Build.props
  4. 8
      aspnet-core/common.props
  5. 1
      aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/en.json
  6. 1
      aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/zh-Hans.json
  7. 2
      common.props
  8. 2
      gateways/common.props

28
apps/vue/src/api/auditing/auditLog.ts

@ -1,5 +1,13 @@
import { defAbpHttp } from '/@/utils/http/abp';
import { AuditLog, GetAuditLogPagedRequest } from './model/auditLogModel';
import {
AuditLog,
EntityChange,
EntityChangeWithUsername,
GetAuditLogPagedRequest,
EntityChangeGetByPagedRequest,
EntityChangeGetWithUsernameInput
} from './model/auditLogModel';
import { ListResultDto } from '../model/baseModel';
enum Api {
RemoteService = 'AbpAuditing',
@ -38,3 +46,21 @@ export const getList = (input: GetAuditLogPagedRequest) => {
},
});
};
export const getEntityChanges = (input: EntityChangeGetByPagedRequest) => {
return defAbpHttp.pagedRequest<EntityChange>({
service: Api.RemoteService,
controller: 'EntityChanges',
action: 'GetListAsync',
params: {
input: input,
},
});
}
export const getEntityChangesWithUsername = (input: EntityChangeGetWithUsernameInput) => {
return defAbpHttp.get<ListResultDto<EntityChangeWithUsername>>({
url: '/api/auditing/entity-changes/with-username',
params: input,
});
}

19
apps/vue/src/api/auditing/model/auditLogModel.ts

@ -25,6 +25,11 @@ export interface EntityChange {
extraProperties?: { [key: string]: any };
}
export interface EntityChangeWithUsername {
entityChange: EntityChange;
userName?: string;
}
export interface Action {
id: string;
serviceName?: string;
@ -74,3 +79,17 @@ export interface GetAuditLogPagedRequest extends PagedAndSortedResultRequestDto
hasException?: boolean;
httpStatusCode?: number;
}
export interface EntityChangeGetByPagedRequest extends PagedAndSortedResultRequestDto {
auditLogId?: string;
startTime?: Date;
endTime?: Date;
changeType?: ChangeType;
entityId?: string;
entityTypeFullName?: string;
}
export interface EntityChangeGetWithUsernameInput {
entityId?: string;
entityTypeFullName?: string;
}

2
aspnet-core/Directory.Build.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VoloAbpPackageVersion>5.3.4</VoloAbpPackageVersion>
<LINGYUNAbpPackageVersion>5.3.4</LINGYUNAbpPackageVersion>
<LINGYUNAbpPackageVersion>5.3.5</LINGYUNAbpPackageVersion>
<DaprPackageVersion>1.8.0</DaprPackageVersion>
<DistributedLockRedisPackageVersion>1.0.1</DistributedLockRedisPackageVersion>
<DotNetCoreCAPPackageVersion>6.0.1</DotNetCoreCAPPackageVersion>

8
aspnet-core/common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.3.4</Version>
<Version>5.3.5</Version>
<Authors>colin</Authors>
<NoWarn>$(NoWarn);CS1591;CS0436;CS8618</NoWarn>
<PackageProjectUrl>https://github.com/colinin/abp-next-admin</PackageProjectUrl>
@ -17,6 +17,12 @@
<None Remove="LocalNuget\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Modules\**" />
<EmbeddedResource Remove="Modules\**" />
<None Remove="Modules\**" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>$(SolutionDir)LocalNuget</OutputPath>
</PropertyGroup>

1
aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/en.json

@ -48,6 +48,7 @@
"MethodName": "Method",
"Parameters": "Parameters",
"EntitiesChanged": "Entities changed",
"ChangeTime": "Change time",
"ChangeType": "Change type",
"EntityTypeFullName": "Entity type",
"EntityId": "Entity id",

1
aspnet-core/modules/auditing/LINGYUN.Abp.Auditing.Application.Contracts/LINGYUN/Abp/Auditing/Localization/Resources/zh-Hans.json

@ -48,6 +48,7 @@
"MethodName": "方法名称",
"Parameters": "参数列表",
"EntitiesChanged": "实体变更",
"ChangeTime": "变更时间",
"ChangeType": "变更类型",
"EntityTypeFullName": "实体类型",
"EntityId": "实体标识",

2
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.3.4</Version>
<Version>5.3.5</Version>
<Authors>LINGYUN</Authors>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<PackageProjectUrl>https://github.com/colinin/abp-next-admin</PackageProjectUrl>

2
gateways/common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.3.4</Version>
<Version>5.3.5</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
Loading…
Cancel
Save