2948 lines
70 KiB
TypeScript
2948 lines
70 KiB
TypeScript
|
|
// This file is auto-generated by @hey-api/openapi-ts
|
||
|
|
|
||
|
|
import type { Options } from '@hey-api/client-axios';
|
||
|
|
|
||
|
|
import type {
|
||
|
|
GetApiAbpApiDefinitionData,
|
||
|
|
GetApiAbpApiDefinitionError,
|
||
|
|
GetApiAbpApiDefinitionResponse,
|
||
|
|
GetApiAbpApplicationConfigurationData,
|
||
|
|
GetApiAbpApplicationConfigurationError,
|
||
|
|
GetApiAbpApplicationConfigurationResponse,
|
||
|
|
GetApiAbpApplicationLocalizationData,
|
||
|
|
GetApiAbpApplicationLocalizationError,
|
||
|
|
GetApiAbpApplicationLocalizationResponse,
|
||
|
|
GetApiAppAbpProBasicApplicationConfigurationError,
|
||
|
|
GetApiAppAbpProBasicApplicationConfigurationResponse,
|
||
|
|
PostApiAppAccountLogin2FaData,
|
||
|
|
PostApiAppAccountLogin2FaError,
|
||
|
|
PostApiAppAccountLogin2FaResponse,
|
||
|
|
PostApiAppAccountLoginData,
|
||
|
|
PostApiAppAccountLoginError,
|
||
|
|
PostApiAppAccountLoginOidcData,
|
||
|
|
PostApiAppAccountLoginOidcError,
|
||
|
|
PostApiAppAccountLoginOidcResponse,
|
||
|
|
PostApiAppAccountLoginResponse,
|
||
|
|
PostApiAppAccountRefreshTokenData,
|
||
|
|
PostApiAppAccountRefreshTokenError,
|
||
|
|
PostApiAppAccountRefreshTokenResponse,
|
||
|
|
PostAuditLogsPageData,
|
||
|
|
PostAuditLogsPageError,
|
||
|
|
PostAuditLogsPageResponse,
|
||
|
|
PostDataDictionaryCreateData,
|
||
|
|
PostDataDictionaryCreateDetailData,
|
||
|
|
PostDataDictionaryCreateDetailError,
|
||
|
|
PostDataDictionaryCreateDetailResponse,
|
||
|
|
PostDataDictionaryCreateError,
|
||
|
|
PostDataDictionaryCreateResponse,
|
||
|
|
PostDataDictionaryDeleteData,
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeData,
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeError,
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeResponse,
|
||
|
|
PostDataDictionaryDeleteError,
|
||
|
|
PostDataDictionaryDeleteResponse,
|
||
|
|
PostDataDictionaryPageData,
|
||
|
|
PostDataDictionaryPageDetailData,
|
||
|
|
PostDataDictionaryPageDetailError,
|
||
|
|
PostDataDictionaryPageDetailResponse,
|
||
|
|
PostDataDictionaryPageError,
|
||
|
|
PostDataDictionaryPageResponse,
|
||
|
|
PostDataDictionaryStatusData,
|
||
|
|
PostDataDictionaryStatusError,
|
||
|
|
PostDataDictionaryStatusResponse,
|
||
|
|
PostDataDictionaryUpdateData,
|
||
|
|
PostDataDictionaryUpdateDetailData,
|
||
|
|
PostDataDictionaryUpdateDetailError,
|
||
|
|
PostDataDictionaryUpdateDetailResponse,
|
||
|
|
PostDataDictionaryUpdateError,
|
||
|
|
PostDataDictionaryUpdateResponse,
|
||
|
|
PostDataTypesListData,
|
||
|
|
PostDataTypesListError,
|
||
|
|
PostDataTypesListResponse,
|
||
|
|
PostEntityModelsCreateAggregateData,
|
||
|
|
PostEntityModelsCreateAggregateError,
|
||
|
|
PostEntityModelsCreateAggregateResponse,
|
||
|
|
PostEntityModelsCreateEntityModelData,
|
||
|
|
PostEntityModelsCreateEntityModelError,
|
||
|
|
PostEntityModelsCreateEntityModelPropertyData,
|
||
|
|
PostEntityModelsCreateEntityModelPropertyError,
|
||
|
|
PostEntityModelsCreateEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsCreateEntityModelResponse,
|
||
|
|
PostEntityModelsDeleteAggregateData,
|
||
|
|
PostEntityModelsDeleteAggregateError,
|
||
|
|
PostEntityModelsDeleteAggregateResponse,
|
||
|
|
PostEntityModelsDeleteEntityModelData,
|
||
|
|
PostEntityModelsDeleteEntityModelError,
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyData,
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyError,
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsDeleteEntityModelResponse,
|
||
|
|
PostEntityModelsGetData,
|
||
|
|
PostEntityModelsGetError,
|
||
|
|
PostEntityModelsGetResponse,
|
||
|
|
PostEntityModelsPagePropertyData,
|
||
|
|
PostEntityModelsPagePropertyError,
|
||
|
|
PostEntityModelsPagePropertyResponse,
|
||
|
|
PostEntityModelsTreeData,
|
||
|
|
PostEntityModelsTreeError,
|
||
|
|
PostEntityModelsTreeResponse,
|
||
|
|
PostEntityModelsUpdateAggregateData,
|
||
|
|
PostEntityModelsUpdateAggregateError,
|
||
|
|
PostEntityModelsUpdateAggregateResponse,
|
||
|
|
PostEntityModelsUpdateEntityModelData,
|
||
|
|
PostEntityModelsUpdateEntityModelError,
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyData,
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyError,
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsUpdateEntityModelResponse,
|
||
|
|
PostEnumTypesCreateEnumTypeData,
|
||
|
|
PostEnumTypesCreateEnumTypeError,
|
||
|
|
PostEnumTypesCreateEnumTypePropertyData,
|
||
|
|
PostEnumTypesCreateEnumTypePropertyError,
|
||
|
|
PostEnumTypesCreateEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesCreateEnumTypeResponse,
|
||
|
|
PostEnumTypesDeleteEnumTypeData,
|
||
|
|
PostEnumTypesDeleteEnumTypeError,
|
||
|
|
PostEnumTypesDeleteEnumTypePropertyData,
|
||
|
|
PostEnumTypesDeleteEnumTypePropertyError,
|
||
|
|
PostEnumTypesDeleteEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesDeleteEnumTypeResponse,
|
||
|
|
PostEnumTypesPageData,
|
||
|
|
PostEnumTypesPageError,
|
||
|
|
PostEnumTypesPagePropertyData,
|
||
|
|
PostEnumTypesPagePropertyError,
|
||
|
|
PostEnumTypesPagePropertyResponse,
|
||
|
|
PostEnumTypesPageResponse,
|
||
|
|
PostEnumTypesUpdateEnumTypeData,
|
||
|
|
PostEnumTypesUpdateEnumTypeError,
|
||
|
|
PostEnumTypesUpdateEnumTypePropertyData,
|
||
|
|
PostEnumTypesUpdateEnumTypePropertyError,
|
||
|
|
PostEnumTypesUpdateEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesUpdateEnumTypeResponse,
|
||
|
|
PostFeaturesDeleteData,
|
||
|
|
PostFeaturesDeleteError,
|
||
|
|
PostFeaturesDeleteResponse,
|
||
|
|
PostFeaturesListData,
|
||
|
|
PostFeaturesListError,
|
||
|
|
PostFeaturesListResponse,
|
||
|
|
PostFeaturesUpdateData,
|
||
|
|
PostFeaturesUpdateError,
|
||
|
|
PostFeaturesUpdateResponse,
|
||
|
|
PostFilesDeleteData,
|
||
|
|
PostFilesDeleteError,
|
||
|
|
PostFilesDeleteResponse,
|
||
|
|
PostFilesDownloadData,
|
||
|
|
PostFilesDownloadError,
|
||
|
|
PostFilesDownloadResponse,
|
||
|
|
PostFilesPageData,
|
||
|
|
PostFilesPageError,
|
||
|
|
PostFilesPageResponse,
|
||
|
|
PostFilesUploadData,
|
||
|
|
PostFilesUploadError,
|
||
|
|
PostFilesUploadResponse,
|
||
|
|
PostGeneratorDownData,
|
||
|
|
PostGeneratorDownError,
|
||
|
|
PostGeneratorDownResponse,
|
||
|
|
PostGeneratorPreViewCodeData,
|
||
|
|
PostGeneratorPreViewCodeError,
|
||
|
|
PostGeneratorPreViewCodeResponse,
|
||
|
|
PostIdentitySecurityLogsPageData,
|
||
|
|
PostIdentitySecurityLogsPageError,
|
||
|
|
PostIdentitySecurityLogsPageResponse,
|
||
|
|
PostLanguagesAllError,
|
||
|
|
PostLanguagesAllResponse,
|
||
|
|
PostLanguagesCreateData,
|
||
|
|
PostLanguagesCreateError,
|
||
|
|
PostLanguagesCreateResponse,
|
||
|
|
PostLanguagesDeleteData,
|
||
|
|
PostLanguagesDeleteError,
|
||
|
|
PostLanguagesDeleteResponse,
|
||
|
|
PostLanguagesPageData,
|
||
|
|
PostLanguagesPageError,
|
||
|
|
PostLanguagesPageResponse,
|
||
|
|
PostLanguagesSetDefaultData,
|
||
|
|
PostLanguagesSetDefaultError,
|
||
|
|
PostLanguagesSetDefaultResponse,
|
||
|
|
PostLanguagesUpdateData,
|
||
|
|
PostLanguagesUpdateError,
|
||
|
|
PostLanguagesUpdateResponse,
|
||
|
|
PostLanguageTextsAllResourceError,
|
||
|
|
PostLanguageTextsAllResourceResponse,
|
||
|
|
PostLanguageTextsCreateData,
|
||
|
|
PostLanguageTextsCreateError,
|
||
|
|
PostLanguageTextsCreateResponse,
|
||
|
|
PostLanguageTextsPageData,
|
||
|
|
PostLanguageTextsPageError,
|
||
|
|
PostLanguageTextsPageResponse,
|
||
|
|
PostLanguageTextsUpdateData,
|
||
|
|
PostLanguageTextsUpdateError,
|
||
|
|
PostLanguageTextsUpdateResponse,
|
||
|
|
PostMenusCreateData,
|
||
|
|
PostMenusCreateError,
|
||
|
|
PostMenusCreateResponse,
|
||
|
|
PostMenusDeleteData,
|
||
|
|
PostMenusDeleteError,
|
||
|
|
PostMenusDeleteResponse,
|
||
|
|
PostMenusPageData,
|
||
|
|
PostMenusPageError,
|
||
|
|
PostMenusPageResponse,
|
||
|
|
PostMenusTreeError,
|
||
|
|
PostMenusTreeResponse,
|
||
|
|
PostMenusUpdateData,
|
||
|
|
PostMenusUpdateError,
|
||
|
|
PostMenusUpdateResponse,
|
||
|
|
PostMenusUserMenuError,
|
||
|
|
PostMenusUserMenuResponse,
|
||
|
|
PostNotificationBatchReadData,
|
||
|
|
PostNotificationBatchReadError,
|
||
|
|
PostNotificationBatchReadResponse,
|
||
|
|
PostNotificationDeleteData,
|
||
|
|
PostNotificationDeleteError,
|
||
|
|
PostNotificationDeleteResponse,
|
||
|
|
PostNotificationNotificationPageData,
|
||
|
|
PostNotificationNotificationPageError,
|
||
|
|
PostNotificationNotificationPageResponse,
|
||
|
|
PostNotificationNotificationSubscriptionPageData,
|
||
|
|
PostNotificationNotificationSubscriptionPageError,
|
||
|
|
PostNotificationNotificationSubscriptionPageResponse,
|
||
|
|
PostNotificationReadData,
|
||
|
|
PostNotificationReadError,
|
||
|
|
PostNotificationReadResponse,
|
||
|
|
PostNotificationSendBroadCastErrorMessageData,
|
||
|
|
PostNotificationSendBroadCastErrorMessageError,
|
||
|
|
PostNotificationSendBroadCastErrorMessageResponse,
|
||
|
|
PostNotificationSendBroadCastInformationMessageData,
|
||
|
|
PostNotificationSendBroadCastInformationMessageError,
|
||
|
|
PostNotificationSendBroadCastInformationMessageResponse,
|
||
|
|
PostNotificationSendBroadCastWarningMessageData,
|
||
|
|
PostNotificationSendBroadCastWarningMessageError,
|
||
|
|
PostNotificationSendBroadCastWarningMessageResponse,
|
||
|
|
PostNotificationSendCommonErrorMessageData,
|
||
|
|
PostNotificationSendCommonErrorMessageError,
|
||
|
|
PostNotificationSendCommonErrorMessageResponse,
|
||
|
|
PostNotificationSendCommonInformationMessageData,
|
||
|
|
PostNotificationSendCommonInformationMessageError,
|
||
|
|
PostNotificationSendCommonInformationMessageResponse,
|
||
|
|
PostNotificationSendCommonWarningMessageData,
|
||
|
|
PostNotificationSendCommonWarningMessageError,
|
||
|
|
PostNotificationSendCommonWarningMessageResponse,
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncData,
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncError,
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncResponse,
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitData,
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitError,
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitResponse,
|
||
|
|
PostOrganizationUnitsCreateData,
|
||
|
|
PostOrganizationUnitsCreateError,
|
||
|
|
PostOrganizationUnitsCreateResponse,
|
||
|
|
PostOrganizationUnitsDeleteData,
|
||
|
|
PostOrganizationUnitsDeleteError,
|
||
|
|
PostOrganizationUnitsDeleteResponse,
|
||
|
|
PostOrganizationUnitsGetRolesData,
|
||
|
|
PostOrganizationUnitsGetRolesError,
|
||
|
|
PostOrganizationUnitsGetRolesResponse,
|
||
|
|
PostOrganizationUnitsGetUnAddRolesData,
|
||
|
|
PostOrganizationUnitsGetUnAddRolesError,
|
||
|
|
PostOrganizationUnitsGetUnAddRolesResponse,
|
||
|
|
PostOrganizationUnitsGetUnAddUsersData,
|
||
|
|
PostOrganizationUnitsGetUnAddUsersError,
|
||
|
|
PostOrganizationUnitsGetUnAddUsersResponse,
|
||
|
|
PostOrganizationUnitsGetUsersData,
|
||
|
|
PostOrganizationUnitsGetUsersError,
|
||
|
|
PostOrganizationUnitsGetUsersResponse,
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncData,
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncError,
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncResponse,
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitData,
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitError,
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitResponse,
|
||
|
|
PostOrganizationUnitsTreeError,
|
||
|
|
PostOrganizationUnitsTreeResponse,
|
||
|
|
PostOrganizationUnitsUpdateData,
|
||
|
|
PostOrganizationUnitsUpdateError,
|
||
|
|
PostOrganizationUnitsUpdateResponse,
|
||
|
|
PostPermissionsTreeData,
|
||
|
|
PostPermissionsTreeError,
|
||
|
|
PostPermissionsTreeResponse,
|
||
|
|
PostPermissionsUpdateData,
|
||
|
|
PostPermissionsUpdateError,
|
||
|
|
PostPermissionsUpdateResponse,
|
||
|
|
PostProjectsAllError,
|
||
|
|
PostProjectsAllResponse,
|
||
|
|
PostProjectsCreateData,
|
||
|
|
PostProjectsCreateError,
|
||
|
|
PostProjectsCreateResponse,
|
||
|
|
PostProjectsDeleteData,
|
||
|
|
PostProjectsDeleteError,
|
||
|
|
PostProjectsDeleteResponse,
|
||
|
|
PostProjectsGetProjectAndEntityData,
|
||
|
|
PostProjectsGetProjectAndEntityError,
|
||
|
|
PostProjectsGetProjectAndEntityResponse,
|
||
|
|
PostProjectsPageData,
|
||
|
|
PostProjectsPageError,
|
||
|
|
PostProjectsPageResponse,
|
||
|
|
PostProjectsUpdateData,
|
||
|
|
PostProjectsUpdateError,
|
||
|
|
PostProjectsUpdateResponse,
|
||
|
|
PostRolesAllError,
|
||
|
|
PostRolesAllResponse,
|
||
|
|
PostRolesCreateData,
|
||
|
|
PostRolesCreateError,
|
||
|
|
PostRolesCreateResponse,
|
||
|
|
PostRolesDeleteData,
|
||
|
|
PostRolesDeleteError,
|
||
|
|
PostRolesDeleteResponse,
|
||
|
|
PostRolesPageData,
|
||
|
|
PostRolesPageError,
|
||
|
|
PostRolesPageResponse,
|
||
|
|
PostRolesUpdateData,
|
||
|
|
PostRolesUpdateError,
|
||
|
|
PostRolesUpdateResponse,
|
||
|
|
PostSettingsAllError,
|
||
|
|
PostSettingsAllResponse,
|
||
|
|
PostSettingsUpdateData,
|
||
|
|
PostSettingsUpdateError,
|
||
|
|
PostSettingsUpdateResponse,
|
||
|
|
PostTemplatesAllError,
|
||
|
|
PostTemplatesAllResponse,
|
||
|
|
PostTemplatesControlTypeError,
|
||
|
|
PostTemplatesControlTypeResponse,
|
||
|
|
PostTemplatesCopyData,
|
||
|
|
PostTemplatesCopyError,
|
||
|
|
PostTemplatesCopyResponse,
|
||
|
|
PostTemplatesCreateData,
|
||
|
|
PostTemplatesCreateDetailData,
|
||
|
|
PostTemplatesCreateDetailError,
|
||
|
|
PostTemplatesCreateDetailResponse,
|
||
|
|
PostTemplatesCreateError,
|
||
|
|
PostTemplatesCreateResponse,
|
||
|
|
PostTemplatesDeleteData,
|
||
|
|
PostTemplatesDeleteDetailData,
|
||
|
|
PostTemplatesDeleteDetailError,
|
||
|
|
PostTemplatesDeleteDetailResponse,
|
||
|
|
PostTemplatesDeleteError,
|
||
|
|
PostTemplatesDeleteResponse,
|
||
|
|
PostTemplatesListError,
|
||
|
|
PostTemplatesListResponse,
|
||
|
|
PostTemplatesPageData,
|
||
|
|
PostTemplatesPageError,
|
||
|
|
PostTemplatesPageResponse,
|
||
|
|
PostTemplatesTemplateTypeError,
|
||
|
|
PostTemplatesTemplateTypeResponse,
|
||
|
|
PostTemplatesTreeData,
|
||
|
|
PostTemplatesTreeError,
|
||
|
|
PostTemplatesTreeResponse,
|
||
|
|
PostTemplatesUpdateData,
|
||
|
|
PostTemplatesUpdateDetailContentData,
|
||
|
|
PostTemplatesUpdateDetailContentError,
|
||
|
|
PostTemplatesUpdateDetailContentResponse,
|
||
|
|
PostTemplatesUpdateDetailData,
|
||
|
|
PostTemplatesUpdateDetailError,
|
||
|
|
PostTemplatesUpdateDetailResponse,
|
||
|
|
PostTemplatesUpdateError,
|
||
|
|
PostTemplatesUpdateResponse,
|
||
|
|
PostTenantsAddOrUpdateConnectionStringData,
|
||
|
|
PostTenantsAddOrUpdateConnectionStringError,
|
||
|
|
PostTenantsAddOrUpdateConnectionStringResponse,
|
||
|
|
PostTenantsCreateData,
|
||
|
|
PostTenantsCreateError,
|
||
|
|
PostTenantsCreateResponse,
|
||
|
|
PostTenantsDeleteConnectionStringData,
|
||
|
|
PostTenantsDeleteConnectionStringError,
|
||
|
|
PostTenantsDeleteConnectionStringResponse,
|
||
|
|
PostTenantsDeleteData,
|
||
|
|
PostTenantsDeleteError,
|
||
|
|
PostTenantsDeleteResponse,
|
||
|
|
PostTenantsFindData,
|
||
|
|
PostTenantsFindError,
|
||
|
|
PostTenantsFindResponse,
|
||
|
|
PostTenantsPageConnectionStringData,
|
||
|
|
PostTenantsPageConnectionStringError,
|
||
|
|
PostTenantsPageConnectionStringResponse,
|
||
|
|
PostTenantsPageData,
|
||
|
|
PostTenantsPageError,
|
||
|
|
PostTenantsPageResponse,
|
||
|
|
PostTenantsUpdateData,
|
||
|
|
PostTenantsUpdateError,
|
||
|
|
PostTenantsUpdateResponse,
|
||
|
|
PostTextTemplatesCreateData,
|
||
|
|
PostTextTemplatesCreateError,
|
||
|
|
PostTextTemplatesCreateResponse,
|
||
|
|
PostTextTemplatesDeleteData,
|
||
|
|
PostTextTemplatesDeleteError,
|
||
|
|
PostTextTemplatesDeleteResponse,
|
||
|
|
PostTextTemplatesExportData,
|
||
|
|
PostTextTemplatesExportError,
|
||
|
|
PostTextTemplatesExportResponse,
|
||
|
|
PostTextTemplatesPageData,
|
||
|
|
PostTextTemplatesPageError,
|
||
|
|
PostTextTemplatesPageResponse,
|
||
|
|
PostTextTemplatesUpdateData,
|
||
|
|
PostTextTemplatesUpdateError,
|
||
|
|
PostTextTemplatesUpdateResponse,
|
||
|
|
PostUsersCanUseTwoFactorError,
|
||
|
|
PostUsersCanUseTwoFactorResponse,
|
||
|
|
PostUsersChangePasswordData,
|
||
|
|
PostUsersChangePasswordError,
|
||
|
|
PostUsersChangePasswordResponse,
|
||
|
|
PostUsersCreateData,
|
||
|
|
PostUsersCreateError,
|
||
|
|
PostUsersCreateResponse,
|
||
|
|
PostUsersDeleteData,
|
||
|
|
PostUsersDeleteError,
|
||
|
|
PostUsersDeleteResponse,
|
||
|
|
PostUsersDisabledTwoFactorData,
|
||
|
|
PostUsersDisabledTwoFactorError,
|
||
|
|
PostUsersDisabledTwoFactorResponse,
|
||
|
|
PostUsersEnabledTwoFactorData,
|
||
|
|
PostUsersEnabledTwoFactorError,
|
||
|
|
PostUsersEnabledTwoFactorResponse,
|
||
|
|
PostUsersExportData,
|
||
|
|
PostUsersExportError,
|
||
|
|
PostUsersExportResponse,
|
||
|
|
PostUsersFindByUserNameData,
|
||
|
|
PostUsersFindByUserNameError,
|
||
|
|
PostUsersFindByUserNameResponse,
|
||
|
|
PostUsersGetQrCodeError,
|
||
|
|
PostUsersGetQrCodeResponse,
|
||
|
|
PostUsersListData,
|
||
|
|
PostUsersListError,
|
||
|
|
PostUsersListResponse,
|
||
|
|
PostUsersLockData,
|
||
|
|
PostUsersLockError,
|
||
|
|
PostUsersLockResponse,
|
||
|
|
PostUsersMyProfileError,
|
||
|
|
PostUsersMyProfileResponse,
|
||
|
|
PostUsersNeedChangePasswordError,
|
||
|
|
PostUsersNeedChangePasswordResponse,
|
||
|
|
PostUsersPageData,
|
||
|
|
PostUsersPageError,
|
||
|
|
PostUsersPageResponse,
|
||
|
|
PostUsersResetPasswordData,
|
||
|
|
PostUsersResetPasswordError,
|
||
|
|
PostUsersResetPasswordResponse,
|
||
|
|
PostUsersResetTwoFactorData,
|
||
|
|
PostUsersResetTwoFactorError,
|
||
|
|
PostUsersResetTwoFactorResponse,
|
||
|
|
PostUsersRoleData,
|
||
|
|
PostUsersRoleError,
|
||
|
|
PostUsersRoleResponse,
|
||
|
|
PostUsersUpdateData,
|
||
|
|
PostUsersUpdateError,
|
||
|
|
PostUsersUpdateResponse,
|
||
|
|
} from './types.gen';
|
||
|
|
|
||
|
|
import {
|
||
|
|
createClient,
|
||
|
|
createConfig,
|
||
|
|
formDataBodySerializer,
|
||
|
|
} from '@hey-api/client-axios';
|
||
|
|
|
||
|
|
export const client = createClient(createConfig());
|
||
|
|
|
||
|
|
export const getApiAbpApiDefinition = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<GetApiAbpApiDefinitionData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).get<
|
||
|
|
GetApiAbpApiDefinitionResponse,
|
||
|
|
GetApiAbpApiDefinitionError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/abp/api-definition',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
export const getApiAbpApplicationConfiguration = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<GetApiAbpApplicationConfigurationData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).get<
|
||
|
|
GetApiAbpApplicationConfigurationResponse,
|
||
|
|
GetApiAbpApplicationConfigurationError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/abp/application-configuration',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
export const getApiAbpApplicationLocalization = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options: Options<GetApiAbpApplicationLocalizationData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).get<
|
||
|
|
GetApiAbpApplicationLocalizationResponse,
|
||
|
|
GetApiAbpApplicationLocalizationError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/abp/application-localization',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
export const getApiAppAbpProBasicApplicationConfiguration = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).get<
|
||
|
|
GetApiAppAbpProBasicApplicationConfigurationResponse,
|
||
|
|
GetApiAppAbpProBasicApplicationConfigurationError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/app/abp-pro-basic-application-configuration',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 登录
|
||
|
|
*/
|
||
|
|
export const postApiAppAccountLogin = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostApiAppAccountLoginData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostApiAppAccountLoginResponse,
|
||
|
|
PostApiAppAccountLoginError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/app/account/login',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 2FA登录
|
||
|
|
*/
|
||
|
|
export const postApiAppAccountLogin2Fa = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostApiAppAccountLogin2FaData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostApiAppAccountLogin2FaResponse,
|
||
|
|
PostApiAppAccountLogin2FaError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/app/account/login2FA',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 第三方扩展登录
|
||
|
|
*/
|
||
|
|
export const postApiAppAccountLoginOidc = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostApiAppAccountLoginOidcData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostApiAppAccountLoginOidcResponse,
|
||
|
|
PostApiAppAccountLoginOidcError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/app/account/login-oidc',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 刷新token
|
||
|
|
*/
|
||
|
|
export const postApiAppAccountRefreshToken = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostApiAppAccountRefreshTokenData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostApiAppAccountRefreshTokenResponse,
|
||
|
|
PostApiAppAccountRefreshTokenError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/api/app/account/refresh-token',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取审计日志信息
|
||
|
|
*/
|
||
|
|
export const postAuditLogsPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostAuditLogsPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostAuditLogsPageResponse,
|
||
|
|
PostAuditLogsPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/AuditLogs/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页字典类型
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataDictionaryPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryPageResponse,
|
||
|
|
PostDataDictionaryPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页字典明细
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryPageDetail = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostDataDictionaryPageDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryPageDetailResponse,
|
||
|
|
PostDataDictionaryPageDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/pageDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建字典类型
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataDictionaryCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryCreateResponse,
|
||
|
|
PostDataDictionaryCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建字典明细
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryCreateDetail = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostDataDictionaryCreateDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryCreateDetailResponse,
|
||
|
|
PostDataDictionaryCreateDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/createDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 设置字典明细状态
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryStatus = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataDictionaryStatusData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryStatusResponse,
|
||
|
|
PostDataDictionaryStatusError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/status',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新字典明细
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryUpdateDetail = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostDataDictionaryUpdateDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryUpdateDetailResponse,
|
||
|
|
PostDataDictionaryUpdateDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/updateDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除字典明细
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataDictionaryDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryDeleteResponse,
|
||
|
|
PostDataDictionaryDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除字典类型
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryDeleteDataDictionaryType = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeResponse,
|
||
|
|
PostDataDictionaryDeleteDataDictionaryTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/deleteDataDictionaryType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 修改字典类型
|
||
|
|
*/
|
||
|
|
export const postDataDictionaryUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataDictionaryUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataDictionaryUpdateResponse,
|
||
|
|
PostDataDictionaryUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataDictionary/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取类型
|
||
|
|
*/
|
||
|
|
export const postDataTypesList = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostDataTypesListData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostDataTypesListResponse,
|
||
|
|
PostDataTypesListError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/DataTypes/List',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取实体属性
|
||
|
|
*/
|
||
|
|
export const postEntityModelsPageProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsPagePropertyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsPagePropertyResponse,
|
||
|
|
PostEntityModelsPagePropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/PageProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新增聚合根
|
||
|
|
*/
|
||
|
|
export const postEntityModelsCreateAggregate = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsCreateAggregateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsCreateAggregateResponse,
|
||
|
|
PostEntityModelsCreateAggregateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/CreateAggregate',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新聚合根
|
||
|
|
*/
|
||
|
|
export const postEntityModelsUpdateAggregate = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsUpdateAggregateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsUpdateAggregateResponse,
|
||
|
|
PostEntityModelsUpdateAggregateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/UpdateAggregate',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除聚合根
|
||
|
|
*/
|
||
|
|
export const postEntityModelsDeleteAggregate = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsDeleteAggregateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsDeleteAggregateResponse,
|
||
|
|
PostEntityModelsDeleteAggregateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/DeleteAggregate',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新增实体
|
||
|
|
*/
|
||
|
|
export const postEntityModelsCreateEntityModel = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsCreateEntityModelData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsCreateEntityModelResponse,
|
||
|
|
PostEntityModelsCreateEntityModelError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/CreateEntityModel',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新实体
|
||
|
|
*/
|
||
|
|
export const postEntityModelsUpdateEntityModel = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsUpdateEntityModelData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsUpdateEntityModelResponse,
|
||
|
|
PostEntityModelsUpdateEntityModelError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/UpdateEntityModel',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除实体
|
||
|
|
*/
|
||
|
|
export const postEntityModelsDeleteEntityModel = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEntityModelsDeleteEntityModelData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsDeleteEntityModelResponse,
|
||
|
|
PostEntityModelsDeleteEntityModelError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/DeleteEntityModel',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新增实体属性
|
||
|
|
*/
|
||
|
|
export const postEntityModelsCreateEntityModelProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostEntityModelsCreateEntityModelPropertyData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsCreateEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsCreateEntityModelPropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/CreateEntityModelProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新实体属性
|
||
|
|
*/
|
||
|
|
export const postEntityModelsUpdateEntityModelProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsUpdateEntityModelPropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/UpdateEntityModelProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除实体属性
|
||
|
|
*/
|
||
|
|
export const postEntityModelsDeleteEntityModelProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyResponse,
|
||
|
|
PostEntityModelsDeleteEntityModelPropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/DeleteEntityModelProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取实体树
|
||
|
|
*/
|
||
|
|
export const postEntityModelsTree = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostEntityModelsTreeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsTreeResponse,
|
||
|
|
PostEntityModelsTreeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/Tree',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取模型数据
|
||
|
|
*/
|
||
|
|
export const postEntityModelsGet = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostEntityModelsGetData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEntityModelsGetResponse,
|
||
|
|
PostEntityModelsGetError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EntityModels/Get',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取枚举
|
||
|
|
*/
|
||
|
|
export const postEnumTypesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostEnumTypesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesPageResponse,
|
||
|
|
PostEnumTypesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取枚举属性
|
||
|
|
*/
|
||
|
|
export const postEnumTypesPageProperty = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostEnumTypesPagePropertyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesPagePropertyResponse,
|
||
|
|
PostEnumTypesPagePropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/PageProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建枚举
|
||
|
|
*/
|
||
|
|
export const postEnumTypesCreateEnumType = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesCreateEnumTypeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesCreateEnumTypeResponse,
|
||
|
|
PostEnumTypesCreateEnumTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/CreateEnumType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新枚举
|
||
|
|
*/
|
||
|
|
export const postEnumTypesUpdateEnumType = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesUpdateEnumTypeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesUpdateEnumTypeResponse,
|
||
|
|
PostEnumTypesUpdateEnumTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/UpdateEnumType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除枚举
|
||
|
|
*/
|
||
|
|
export const postEnumTypesDeleteEnumType = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesDeleteEnumTypeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesDeleteEnumTypeResponse,
|
||
|
|
PostEnumTypesDeleteEnumTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/DeleteEnumType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建枚举属性
|
||
|
|
*/
|
||
|
|
export const postEnumTypesCreateEnumTypeProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesCreateEnumTypePropertyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesCreateEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesCreateEnumTypePropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/CreateEnumTypeProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新枚举属性
|
||
|
|
*/
|
||
|
|
export const postEnumTypesUpdateEnumTypeProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesUpdateEnumTypePropertyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesUpdateEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesUpdateEnumTypePropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/UpdateEnumTypeProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除枚举属性
|
||
|
|
*/
|
||
|
|
export const postEnumTypesDeleteEnumTypeProperty = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostEnumTypesDeleteEnumTypePropertyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostEnumTypesDeleteEnumTypePropertyResponse,
|
||
|
|
PostEnumTypesDeleteEnumTypePropertyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/EnumTypes/DeleteEnumTypeProperty',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取Features
|
||
|
|
*/
|
||
|
|
export const postFeaturesList = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFeaturesListData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFeaturesListResponse,
|
||
|
|
PostFeaturesListError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Features/list',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新Features
|
||
|
|
*/
|
||
|
|
export const postFeaturesUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFeaturesUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFeaturesUpdateResponse,
|
||
|
|
PostFeaturesUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Features/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除Features
|
||
|
|
*/
|
||
|
|
export const postFeaturesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFeaturesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFeaturesDeleteResponse,
|
||
|
|
PostFeaturesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Features/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询文件
|
||
|
|
*/
|
||
|
|
export const postFilesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFilesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFilesPageResponse,
|
||
|
|
PostFilesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Files/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 上传文件
|
||
|
|
*/
|
||
|
|
export const postFilesUpload = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFilesUploadData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFilesUploadResponse,
|
||
|
|
PostFilesUploadError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
...formDataBodySerializer,
|
||
|
|
headers: {
|
||
|
|
'Content-Type': null,
|
||
|
|
...options?.headers,
|
||
|
|
},
|
||
|
|
url: '/Files/Upload',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除文件
|
||
|
|
*/
|
||
|
|
export const postFilesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFilesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFilesDeleteResponse,
|
||
|
|
PostFilesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Files/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 下载文件
|
||
|
|
*/
|
||
|
|
export const postFilesDownload = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostFilesDownloadData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostFilesDownloadResponse,
|
||
|
|
PostFilesDownloadError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Files/Download',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 预览
|
||
|
|
*/
|
||
|
|
export const postGeneratorPreViewCode = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostGeneratorPreViewCodeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostGeneratorPreViewCodeResponse,
|
||
|
|
PostGeneratorPreViewCodeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Generator/PreViewCode',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 下载
|
||
|
|
*/
|
||
|
|
export const postGeneratorDown = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostGeneratorDownData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostGeneratorDownResponse,
|
||
|
|
PostGeneratorDownError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Generator/Down',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取登录日志信息
|
||
|
|
*/
|
||
|
|
export const postIdentitySecurityLogsPage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostIdentitySecurityLogsPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostIdentitySecurityLogsPageResponse,
|
||
|
|
PostIdentitySecurityLogsPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/IdentitySecurityLogs/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesAll = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesAllResponse,
|
||
|
|
PostLanguagesAllError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/All',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguagesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesPageResponse,
|
||
|
|
PostLanguagesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguagesCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesCreateResponse,
|
||
|
|
PostLanguagesCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguagesUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesUpdateResponse,
|
||
|
|
PostLanguagesUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguagesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesDeleteResponse,
|
||
|
|
PostLanguagesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 设置默认语言
|
||
|
|
*/
|
||
|
|
export const postLanguagesSetDefault = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguagesSetDefaultData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguagesSetDefaultResponse,
|
||
|
|
PostLanguagesSetDefaultError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Languages/SetDefault',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有资源
|
||
|
|
*/
|
||
|
|
export const postLanguageTextsAllResource = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguageTextsAllResourceResponse,
|
||
|
|
PostLanguageTextsAllResourceError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/LanguageTexts/AllResource',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询语言文本
|
||
|
|
*/
|
||
|
|
export const postLanguageTextsPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguageTextsPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguageTextsPageResponse,
|
||
|
|
PostLanguageTextsPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/LanguageTexts/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建语言文本
|
||
|
|
*/
|
||
|
|
export const postLanguageTextsCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguageTextsCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguageTextsCreateResponse,
|
||
|
|
PostLanguageTextsCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/LanguageTexts/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑语言文本
|
||
|
|
*/
|
||
|
|
export const postLanguageTextsUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostLanguageTextsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostLanguageTextsUpdateResponse,
|
||
|
|
PostLanguageTextsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/LanguageTexts/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取用户菜单
|
||
|
|
*/
|
||
|
|
export const postMenusUserMenu = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusUserMenuResponse,
|
||
|
|
PostMenusUserMenuError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/UserMenu',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询菜单
|
||
|
|
*/
|
||
|
|
export const postMenusPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostMenusPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusPageResponse,
|
||
|
|
PostMenusPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建菜单
|
||
|
|
*/
|
||
|
|
export const postMenusCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostMenusCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusCreateResponse,
|
||
|
|
PostMenusCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑菜单
|
||
|
|
*/
|
||
|
|
export const postMenusUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostMenusUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusUpdateResponse,
|
||
|
|
PostMenusUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除菜单
|
||
|
|
*/
|
||
|
|
export const postMenusDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostMenusDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusDeleteResponse,
|
||
|
|
PostMenusDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取菜单树
|
||
|
|
*/
|
||
|
|
export const postMenusTree = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostMenusTreeResponse,
|
||
|
|
PostMenusTreeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Menus/Tree',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取文本消息
|
||
|
|
*/
|
||
|
|
export const postNotificationNotificationPage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostNotificationNotificationPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationNotificationPageResponse,
|
||
|
|
PostNotificationNotificationPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/NotificationPage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取广播消息已读人数
|
||
|
|
*/
|
||
|
|
export const postNotificationNotificationSubscriptionPage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostNotificationNotificationSubscriptionPageData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationNotificationSubscriptionPageResponse,
|
||
|
|
PostNotificationNotificationSubscriptionPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/NotificationSubscriptionPage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除消息
|
||
|
|
*/
|
||
|
|
export const postNotificationDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostNotificationDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationDeleteResponse,
|
||
|
|
PostNotificationDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送警告文本消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendCommonWarningMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostNotificationSendCommonWarningMessageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendCommonWarningMessageResponse,
|
||
|
|
PostNotificationSendCommonWarningMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendCommonWarningMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送普通文本消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendCommonInformationMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostNotificationSendCommonInformationMessageData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendCommonInformationMessageResponse,
|
||
|
|
PostNotificationSendCommonInformationMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendCommonInformationMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送错误文本消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendCommonErrorMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostNotificationSendCommonErrorMessageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendCommonErrorMessageResponse,
|
||
|
|
PostNotificationSendCommonErrorMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendCommonErrorMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送警告广播消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendBroadCastWarningMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostNotificationSendBroadCastWarningMessageData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendBroadCastWarningMessageResponse,
|
||
|
|
PostNotificationSendBroadCastWarningMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendBroadCastWarningMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送正常广播消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendBroadCastInformationMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostNotificationSendBroadCastInformationMessageData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendBroadCastInformationMessageResponse,
|
||
|
|
PostNotificationSendBroadCastInformationMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendBroadCastInformationMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 发送错误广播消息
|
||
|
|
*/
|
||
|
|
export const postNotificationSendBroadCastErrorMessage = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostNotificationSendBroadCastErrorMessageData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationSendBroadCastErrorMessageResponse,
|
||
|
|
PostNotificationSendBroadCastErrorMessageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/SendBroadCastErrorMessage',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 消息设置为已读
|
||
|
|
*/
|
||
|
|
export const postNotificationRead = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostNotificationReadData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationReadResponse,
|
||
|
|
PostNotificationReadError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/Read',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 消息批量设置为已读
|
||
|
|
*/
|
||
|
|
export const postNotificationBatchRead = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostNotificationBatchReadData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostNotificationBatchReadResponse,
|
||
|
|
PostNotificationBatchReadError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Notification/BatchRead',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取组织机构树
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsTree = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsTreeResponse,
|
||
|
|
PostOrganizationUnitsTreeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/tree',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建组织机构
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsCreate = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsCreateResponse,
|
||
|
|
PostOrganizationUnitsCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除组织机构
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsDelete = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsDeleteResponse,
|
||
|
|
PostOrganizationUnitsDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑组织机构
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsUpdate = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsUpdateResponse,
|
||
|
|
PostOrganizationUnitsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 向组织机构添加角色
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsAddRoleToOrganizationUnitAsync = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncResponse,
|
||
|
|
PostOrganizationUnitsAddRoleToOrganizationUnitAsyncError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/addRoleToOrganizationUnitAsync',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 向组织机构删除角色
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsRemoveRoleFromOrganizationUnitAsync = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncResponse,
|
||
|
|
PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/removeRoleFromOrganizationUnitAsync',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 向组织机构添加用户
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsAddUserToOrganizationUnit = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitResponse,
|
||
|
|
PostOrganizationUnitsAddUserToOrganizationUnitError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/addUserToOrganizationUnit',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 向组织机构删除用户
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsRemoveUserFromOrganizationUnit = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitData,
|
||
|
|
ThrowOnError
|
||
|
|
>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitResponse,
|
||
|
|
PostOrganizationUnitsRemoveUserFromOrganizationUnitError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/removeUserFromOrganizationUnit',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取组织机构下用户
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsGetUsers = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsGetUsersData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsGetUsersResponse,
|
||
|
|
PostOrganizationUnitsGetUsersError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/getUsers',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取组织机构下角色
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsGetRoles = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsGetRolesData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsGetRolesResponse,
|
||
|
|
PostOrganizationUnitsGetRolesError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/getRoles',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取不在组织机构的用户
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsGetUnAddUsers = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsGetUnAddUsersData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsGetUnAddUsersResponse,
|
||
|
|
PostOrganizationUnitsGetUnAddUsersError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/getUnAddUsers',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取不在组织机构的角色
|
||
|
|
*/
|
||
|
|
export const postOrganizationUnitsGetUnAddRoles = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostOrganizationUnitsGetUnAddRolesData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostOrganizationUnitsGetUnAddRolesResponse,
|
||
|
|
PostOrganizationUnitsGetUnAddRolesError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/OrganizationUnits/getUnAddRoles',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取角色权限
|
||
|
|
*/
|
||
|
|
export const postPermissionsTree = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostPermissionsTreeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostPermissionsTreeResponse,
|
||
|
|
PostPermissionsTreeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Permissions/tree',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新角色
|
||
|
|
*/
|
||
|
|
export const postPermissionsUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostPermissionsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostPermissionsUpdateResponse,
|
||
|
|
PostPermissionsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Permissions/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有项目
|
||
|
|
*/
|
||
|
|
export const postProjectsAll = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsAllResponse,
|
||
|
|
PostProjectsAllError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/All',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取项目
|
||
|
|
*/
|
||
|
|
export const postProjectsPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostProjectsPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsPageResponse,
|
||
|
|
PostProjectsPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建项目
|
||
|
|
*/
|
||
|
|
export const postProjectsCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostProjectsCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsCreateResponse,
|
||
|
|
PostProjectsCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新项目
|
||
|
|
*/
|
||
|
|
export const postProjectsUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostProjectsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsUpdateResponse,
|
||
|
|
PostProjectsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除项目
|
||
|
|
*/
|
||
|
|
export const postProjectsDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostProjectsDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsDeleteResponse,
|
||
|
|
PostProjectsDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取项目和实体信息
|
||
|
|
*/
|
||
|
|
export const postProjectsGetProjectAndEntity = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostProjectsGetProjectAndEntityData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostProjectsGetProjectAndEntityResponse,
|
||
|
|
PostProjectsGetProjectAndEntityError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Projects/GetProjectAndEntity',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有角色
|
||
|
|
*/
|
||
|
|
export const postRolesAll = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostRolesAllResponse,
|
||
|
|
PostRolesAllError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Roles/all',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取角色
|
||
|
|
*/
|
||
|
|
export const postRolesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostRolesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostRolesPageResponse,
|
||
|
|
PostRolesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Roles/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建角色
|
||
|
|
*/
|
||
|
|
export const postRolesCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostRolesCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostRolesCreateResponse,
|
||
|
|
PostRolesCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Roles/create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新角色
|
||
|
|
*/
|
||
|
|
export const postRolesUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostRolesUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostRolesUpdateResponse,
|
||
|
|
PostRolesUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Roles/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除角色
|
||
|
|
*/
|
||
|
|
export const postRolesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostRolesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostRolesDeleteResponse,
|
||
|
|
PostRolesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Roles/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有Setting
|
||
|
|
*/
|
||
|
|
export const postSettingsAll = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostSettingsAllResponse,
|
||
|
|
PostSettingsAllError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Settings/all',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新Setting
|
||
|
|
*/
|
||
|
|
export const postSettingsUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostSettingsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostSettingsUpdateResponse,
|
||
|
|
PostSettingsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Settings/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有模板组
|
||
|
|
*/
|
||
|
|
export const postTemplatesAll = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesAllResponse,
|
||
|
|
PostTemplatesAllError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/All',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取模板组
|
||
|
|
*/
|
||
|
|
export const postTemplatesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesPageResponse,
|
||
|
|
PostTemplatesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建模板组
|
||
|
|
*/
|
||
|
|
export const postTemplatesCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesCreateResponse,
|
||
|
|
PostTemplatesCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新模板组
|
||
|
|
*/
|
||
|
|
export const postTemplatesUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesUpdateResponse,
|
||
|
|
PostTemplatesUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除模板组
|
||
|
|
*/
|
||
|
|
export const postTemplatesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesDeleteResponse,
|
||
|
|
PostTemplatesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesCreateDetail = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesCreateDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesCreateDetailResponse,
|
||
|
|
PostTemplatesCreateDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/CreateDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesUpdateDetail = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesUpdateDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesUpdateDetailResponse,
|
||
|
|
PostTemplatesUpdateDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/UpdateDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesUpdateDetailContent = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostTemplatesUpdateDetailContentData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesUpdateDetailContentResponse,
|
||
|
|
PostTemplatesUpdateDetailContentError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/UpdateDetailContent',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesDeleteDetail = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesDeleteDetailData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesDeleteDetailResponse,
|
||
|
|
PostTemplatesDeleteDetailError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/DeleteDetail',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取模板树形结构
|
||
|
|
*/
|
||
|
|
export const postTemplatesTree = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesTreeData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesTreeResponse,
|
||
|
|
PostTemplatesTreeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Tree',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取所有模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesList = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesListResponse,
|
||
|
|
PostTemplatesListError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/List',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取模板策略
|
||
|
|
*/
|
||
|
|
export const postTemplatesControlType = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesControlTypeResponse,
|
||
|
|
PostTemplatesControlTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/ControlType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取模板类型
|
||
|
|
*/
|
||
|
|
export const postTemplatesTemplateType = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesTemplateTypeResponse,
|
||
|
|
PostTemplatesTemplateTypeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/TemplateType',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 复制模板
|
||
|
|
*/
|
||
|
|
export const postTemplatesCopy = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTemplatesCopyData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTemplatesCopyResponse,
|
||
|
|
PostTemplatesCopyError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Templates/Copy',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 通过名称获取租户信息
|
||
|
|
*/
|
||
|
|
export const postTenantsFind = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTenantsFindData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsFindResponse,
|
||
|
|
PostTenantsFindError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/find',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取租户信息
|
||
|
|
*/
|
||
|
|
export const postTenantsPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTenantsPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsPageResponse,
|
||
|
|
PostTenantsPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建租户
|
||
|
|
*/
|
||
|
|
export const postTenantsCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTenantsCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsCreateResponse,
|
||
|
|
PostTenantsCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新租户
|
||
|
|
*/
|
||
|
|
export const postTenantsUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTenantsUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsUpdateResponse,
|
||
|
|
PostTenantsUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除租户
|
||
|
|
*/
|
||
|
|
export const postTenantsDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTenantsDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsDeleteResponse,
|
||
|
|
PostTenantsDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页租户连接字符串
|
||
|
|
*/
|
||
|
|
export const postTenantsPageConnectionString = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostTenantsPageConnectionStringData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsPageConnectionStringResponse,
|
||
|
|
PostTenantsPageConnectionStringError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/pageConnectionString',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新增或者更新租户所有连接字符串
|
||
|
|
*/
|
||
|
|
export const postTenantsAddOrUpdateConnectionString = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostTenantsAddOrUpdateConnectionStringData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsAddOrUpdateConnectionStringResponse,
|
||
|
|
PostTenantsAddOrUpdateConnectionStringError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/addOrUpdateConnectionString',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除租户连接字符串
|
||
|
|
*/
|
||
|
|
export const postTenantsDeleteConnectionString = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostTenantsDeleteConnectionStringData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTenantsDeleteConnectionStringResponse,
|
||
|
|
PostTenantsDeleteConnectionStringError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Tenants/deleteConnectionString',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页查询模板
|
||
|
|
*/
|
||
|
|
export const postTextTemplatesPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTextTemplatesPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTextTemplatesPageResponse,
|
||
|
|
PostTextTemplatesPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/TextTemplates/Page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建模板
|
||
|
|
*/
|
||
|
|
export const postTextTemplatesCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTextTemplatesCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTextTemplatesCreateResponse,
|
||
|
|
PostTextTemplatesCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/TextTemplates/Create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑模板
|
||
|
|
*/
|
||
|
|
export const postTextTemplatesUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTextTemplatesUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTextTemplatesUpdateResponse,
|
||
|
|
PostTextTemplatesUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/TextTemplates/Update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除模板
|
||
|
|
*/
|
||
|
|
export const postTextTemplatesDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTextTemplatesDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTextTemplatesDeleteResponse,
|
||
|
|
PostTextTemplatesDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/TextTemplates/Delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 导出模板列表
|
||
|
|
*/
|
||
|
|
export const postTextTemplatesExport = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostTextTemplatesExportData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostTextTemplatesExportResponse,
|
||
|
|
PostTextTemplatesExportError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/TextTemplates/Export',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取用户信息
|
||
|
|
*/
|
||
|
|
export const postUsersPage = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersPageData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersPageResponse,
|
||
|
|
PostUsersPageError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/page',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 分页获取用户信息
|
||
|
|
*/
|
||
|
|
export const postUsersList = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersListData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersListResponse,
|
||
|
|
PostUsersListError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/list',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 导出用户列表
|
||
|
|
*/
|
||
|
|
export const postUsersExport = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersExportData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersExportResponse,
|
||
|
|
PostUsersExportError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/export',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 创建用户
|
||
|
|
*/
|
||
|
|
export const postUsersCreate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersCreateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersCreateResponse,
|
||
|
|
PostUsersCreateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/create',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编辑用户
|
||
|
|
*/
|
||
|
|
export const postUsersUpdate = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersUpdateData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersUpdateResponse,
|
||
|
|
PostUsersUpdateError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/update',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除用户
|
||
|
|
*/
|
||
|
|
export const postUsersDelete = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersDeleteData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersDeleteResponse,
|
||
|
|
PostUsersDeleteError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/delete',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取用户角色信息
|
||
|
|
*/
|
||
|
|
export const postUsersRole = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersRoleData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersRoleResponse,
|
||
|
|
PostUsersRoleError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/role',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 修改当前用户密码
|
||
|
|
*/
|
||
|
|
export const postUsersChangePassword = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersChangePasswordData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersChangePasswordResponse,
|
||
|
|
PostUsersChangePasswordError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/changePassword',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 重置密码
|
||
|
|
*/
|
||
|
|
export const postUsersResetPassword = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersResetPasswordData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersResetPasswordResponse,
|
||
|
|
PostUsersResetPasswordError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/resetPassword',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 锁定用户
|
||
|
|
*/
|
||
|
|
export const postUsersLock = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersLockData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersLockResponse,
|
||
|
|
PostUsersLockError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/lock',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 通过用户名查找用户
|
||
|
|
*/
|
||
|
|
export const postUsersFindByUserName = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersFindByUserNameData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersFindByUserNameResponse,
|
||
|
|
PostUsersFindByUserNameError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/findByUserName',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取个人信息
|
||
|
|
*/
|
||
|
|
export const postUsersMyProfile = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersMyProfileResponse,
|
||
|
|
PostUsersMyProfileError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/myProfile',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 是否启用双因素验证
|
||
|
|
*/
|
||
|
|
export const postUsersCanUseTwoFactor = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersCanUseTwoFactorResponse,
|
||
|
|
PostUsersCanUseTwoFactorError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/canUseTwoFactor',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取双因素二维码
|
||
|
|
*/
|
||
|
|
export const postUsersGetQrCode = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersGetQrCodeResponse,
|
||
|
|
PostUsersGetQrCodeError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/getQRCode',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 开启双因素验证
|
||
|
|
*/
|
||
|
|
export const postUsersEnabledTwoFactor = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersEnabledTwoFactorData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersEnabledTwoFactorResponse,
|
||
|
|
PostUsersEnabledTwoFactorError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/enabledTwoFactor',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 关闭双因素验证
|
||
|
|
*/
|
||
|
|
export const postUsersDisabledTwoFactor = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<PostUsersDisabledTwoFactorData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersDisabledTwoFactorResponse,
|
||
|
|
PostUsersDisabledTwoFactorError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/disabledTwoFactor',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 重置双因素验证
|
||
|
|
*/
|
||
|
|
export const postUsersResetTwoFactor = <ThrowOnError extends boolean = false>(
|
||
|
|
options?: Options<PostUsersResetTwoFactorData, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersResetTwoFactorResponse,
|
||
|
|
PostUsersResetTwoFactorError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/resetTwoFactor',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 是否需要修改密码
|
||
|
|
*/
|
||
|
|
export const postUsersNeedChangePassword = <
|
||
|
|
ThrowOnError extends boolean = false,
|
||
|
|
>(
|
||
|
|
options?: Options<unknown, ThrowOnError>,
|
||
|
|
) => {
|
||
|
|
return (options?.client ?? client).post<
|
||
|
|
PostUsersNeedChangePasswordResponse,
|
||
|
|
PostUsersNeedChangePasswordError,
|
||
|
|
ThrowOnError
|
||
|
|
>({
|
||
|
|
...options,
|
||
|
|
url: '/Users/needChangePassword',
|
||
|
|
});
|
||
|
|
};
|