From 8eb5221951346cefdd85459e3af5e8b143241c22 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 22 Dec 2024 11:10:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(openiddict):=20=E5=A2=9E=E5=8A=A0=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E7=B1=BB=E5=9E=8B=E5=AF=BC=E5=87=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@abp/openiddict/src/types/index.ts | 1 + .../@abp/openiddict/src/types/scopes.ts | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 apps/vben5/packages/@abp/openiddict/src/types/scopes.ts diff --git a/apps/vben5/packages/@abp/openiddict/src/types/index.ts b/apps/vben5/packages/@abp/openiddict/src/types/index.ts index 7284dba88..7144e7eb0 100644 --- a/apps/vben5/packages/@abp/openiddict/src/types/index.ts +++ b/apps/vben5/packages/@abp/openiddict/src/types/index.ts @@ -1,2 +1,3 @@ export * from './applications'; export * from './authorizations'; +export * from './scopes'; diff --git a/apps/vben5/packages/@abp/openiddict/src/types/scopes.ts b/apps/vben5/packages/@abp/openiddict/src/types/scopes.ts new file mode 100644 index 000000000..6a0b35f94 --- /dev/null +++ b/apps/vben5/packages/@abp/openiddict/src/types/scopes.ts @@ -0,0 +1,41 @@ +import type { + Dictionary, + ExtensibleAuditedEntityDto, + ExtensibleObject, + PagedAndSortedResultRequestDto, +} from '@abp/core'; + +interface OpenIddictScopeCreateOrUpdateDto extends ExtensibleObject { + description?: string; + descriptions?: Dictionary; + displayName?: string; + displayNames?: Dictionary; + name: string; + properties?: Dictionary; + resources?: string[]; +} + +type OpenIddictScopeCreateDto = OpenIddictScopeCreateOrUpdateDto; + +interface OpenIddictScopeGetListInput extends PagedAndSortedResultRequestDto { + filter?: string; +} + +type OpenIddictScopeUpdateDto = OpenIddictScopeCreateOrUpdateDto; + +interface OpenIddictScopeDto extends ExtensibleAuditedEntityDto { + description?: string; + descriptions?: Dictionary; + displayName?: string; + displayNames?: Dictionary; + name: string; + properties?: Dictionary; + resources?: string[]; +} + +export type { + OpenIddictScopeCreateDto, + OpenIddictScopeDto, + OpenIddictScopeGetListInput, + OpenIddictScopeUpdateDto, +};