├── src ├── main │ └── java │ │ └── cn │ │ └── authing │ │ └── sdk │ │ └── java │ │ ├── model │ │ ├── Receiver.java │ │ ├── ClientCredentialInput.java │ │ └── AuthingClientOptions.java │ │ ├── dto │ │ ├── UpdateDenfDto.java │ │ ├── Any.java │ │ ├── Node.java │ │ ├── Role.java │ │ ├── User.java │ │ ├── OIDCConfig.java │ │ ├── CasIdPConfig.java │ │ ├── SamlIdpConfig.java │ │ ├── TabConfigDto.java │ │ ├── AccessTokenDto.java │ │ ├── OauthIdpConfig.java │ │ ├── FinishLoginParams.java │ │ ├── ValidatePEMKeyDto.java │ │ ├── ClickCostContactDto.java │ │ ├── CheckNamespaceParamsDto.java │ │ ├── ListDeviceCredentialDto.java │ │ ├── LanguageCoinfigGlobalDto.java │ │ ├── RemoveDeviceCredentialDto.java │ │ ├── CheckDeviceCredentialIdDto.java │ │ ├── SendInviteTenantUserEmailDto.java │ │ ├── WebAuthnRemoveCredentialDto.java │ │ ├── ISsoPageCustomizationSettingsDto.java │ │ ├── ApplicationTabMethodsSortConfigDto.java │ │ ├── authentication │ │ │ ├── ICasParams.java │ │ │ └── ValidateTokenParams.java │ │ ├── CaptchaCodeDto.java │ │ ├── GetModelDto.java │ │ ├── FunctionModelIdDto.java │ │ ├── ListWhitelistDto.java │ │ ├── MfaOtpVerityDto.java │ │ ├── RemovePostDto.java │ │ ├── TerminalBaseDto.java │ │ ├── DeleteTerminalDto.java │ │ ├── GetNamespaceDto.java │ │ ├── UpdateTerminalDto.java │ │ ├── DeleteNamespaceDto.java │ │ ├── GetApplicationDto.java │ │ ├── GetTenantByCodeDto.java │ │ ├── ImportMetadataDto.java │ │ ├── DeleteApplicationDto.java │ │ ├── IsSuccessDto.java │ │ ├── IsUserExistsDto.java │ │ ├── AllOperateDto.java │ │ ├── CheckDomainAvailable.java │ │ ├── GenerateBindExtIdpLinkDataDto.java │ │ ├── GetApplicationSecretDto.java │ │ ├── GetOrderDetailDto.java │ │ ├── GetPermissionNamespaceDto.java │ │ ├── LdapUpdateDto.java │ │ ├── OtpSecretRespDto.java │ │ ├── DeletePermissionNamespaceDto.java │ │ ├── DeleteTenantDto.java │ │ ├── ExportMetadataDto.java │ │ ├── GetApplicationSimpleInfoDto.java │ │ ├── GetOrderPayDetailDto.java │ │ ├── GetTenantCooperatorDto.java │ │ ├── RefreshApplicationSecretDto.java │ │ ├── ResignUserDataDto.java │ │ ├── SignInByWechatworkDto.java │ │ ├── ValidatePasswordResultDto.java │ │ ├── AuthenticateByAlipayDto.java │ │ ├── AuthenticateByGoogleDto.java │ │ ├── AuthenticateByWechatDto.java │ │ ├── GetDataPolicyDto.java │ │ ├── GetFactorDto.java │ │ ├── GetImportTemplateDto.java │ │ ├── GetMultipleTenantAdminDto.java │ │ ├── GetPostOfPublicAccountDto.java │ │ ├── ImportTenantDataDto.java │ │ ├── LinkIdentityDataDto.java │ │ ├── ResetFactorDto.java │ │ ├── RestFactorDto.java │ │ ├── SendSmsBatchDataDto.java │ │ ├── SignInByAlipayPayloadDto.java │ │ ├── SignInByApplePayloadDto.java │ │ ├── SignInByDouyinPayloadDto.java │ │ ├── SignInByGooglePayloadDto.java │ │ ├── SignInByHuaweiPayloadDto.java │ │ ├── SignInByOPPOPayloadDto.java │ │ ├── SignInByWechatPayloadDto.java │ │ ├── SignInByXiaomiPayloadDto.java │ │ ├── UnbindDeviceDto.java │ │ ├── UnbindExtIdpDto.java │ │ ├── UnlinkExtIdpDto.java │ │ ├── BatchApplicationsAuthDto.java │ │ ├── CheckSessionStatusDataDto.java │ │ ├── DeleteCommonResourcesBatchDto.java │ │ ├── DeleteDataPolicyDto.java │ │ ├── GetApplicationSecretDataDto.java │ │ ├── GetPipelineFunctionDto.java │ │ ├── GetPublicAccountsOfPostDto.java │ │ ├── GetPublicAccountsOfRoleDto.java │ │ ├── GetPublicAccountsOfUserDto.java │ │ ├── GetSyncJobDto.java │ │ ├── GetTenantCooperatorMenuDto.java │ │ ├── GetWebhookDto.java │ │ ├── ImportTenantDto.java │ │ ├── IsActionAllowedDataDto.java │ │ ├── LdapSetEnabledFlagDto.java │ │ ├── SendEmailBatchDataDto.java │ │ ├── SetUserCustomDataDto.java │ │ ├── SignInByGiteePayloadDto.java │ │ ├── SignInByGithubPayloadDto.java │ │ ├── SignInByGitlabPayloadDto.java │ │ ├── SignInByKuaishouPayloadDto.java │ │ ├── SignInByLarkBlockPayloadDto.java │ │ ├── SignInBySlackPayloadDto.java │ │ ├── UnlinkIdentityDataDto.java │ │ ├── VerifyConfigAppDto.java │ │ ├── AuthenticateByWechatworkDto.java │ │ ├── CheckQrcodeStatusDto.java │ │ ├── DeletePipelineFunctionDto.java │ │ ├── DeleteTenantCooperatorBodyDto.java │ │ ├── I18nDto.java │ │ ├── OtpVerityRespDto.java │ │ ├── RevokeDeviceSessionDto.java │ │ ├── SignInByLinkedInPayloadDto.java │ │ ├── AuthenticateByLarkInternalDto.java │ │ ├── AuthenticateByLarkPublicDto.java │ │ ├── CreatePublicAccountFromUserDto.java │ │ ├── DeleteMultipleTenantAdminBodyDto.java │ │ ├── GetApplicationPermissionStrategyDto.java │ │ ├── GetPublicAccountsOfGroupDto.java │ │ ├── GetSyncTaskDto.java │ │ ├── MfaTokenIntrospectEndpointParams.java │ │ ├── ReUploadPipelineFunctionDto.java │ │ ├── RefreshApplicationSecretDataDto.java │ │ ├── SignInByLarkInternalPayloadDto.java │ │ ├── SignInByLarkPublicPayloadDto.java │ │ ├── SystmeInfoRSAConfig.java │ │ ├── SystmeInfoSM2Config.java │ │ ├── UnbindEmailDto.java │ │ ├── UnbindPhoneDto.java │ │ ├── AlipayAuthInfoDataDto.java │ │ ├── GetAppLoginQrcodeStatusDto.java │ │ ├── GetApplicationPublicConfigDto.java │ │ ├── HasAnyRoleDto.java │ │ ├── UpdateTenantAppqrcodeState.java │ │ ├── DeleteAdminRoleDto.java │ │ ├── DeleteGroupsReqDto.java │ │ ├── GetNamespacesBatchDto.java │ │ ├── GetPermissionNamespacesBatchDto.java │ │ ├── GetUserAuthResourceStructDto.java │ │ ├── TriggerSyncTaskDto.java │ │ ├── AuthenticateByWechatworkAgencyDto.java │ │ ├── CheckDomainAvailableDataDto.java │ │ ├── DepartmentI18nDto.java │ │ ├── GetMyRoleListDto.java │ │ ├── SignInByWechatworkAgencyPayloadDto.java │ │ ├── VerifyRegistrationResultDto.java │ │ ├── CheckPushcodeStatusDto.java │ │ ├── CustomFieldI18n.java │ │ ├── DeleteAccessKeyDto.java │ │ ├── DeletePermissionNamespacesBatchDto.java │ │ ├── TriggerSyncTaskDataDto.java │ │ ├── CheckDataPolicyExistsDto.java │ │ ├── DeleteNamespacesBatchDto.java │ │ ├── DeleteWebhookDto.java │ │ ├── ResetPrincipalAuthenticationInfoRespDto.java │ │ ├── SignInByWechatMiniProgramPhoneInfoPayloadDto.java │ │ ├── GetPushCodeRelationAppsDataDto.java │ │ ├── CreateRolesBatch.java │ │ ├── GetUserPasswordCiphertextDataDto.java │ │ ├── TriggerWebhookData.java │ │ ├── IsUserInDepartmentDataDto.java │ │ ├── SignInByQQPayloadDto.java │ │ ├── LanguageCoinfigDto.java │ │ ├── SignInByWeiboPayloadDto.java │ │ ├── GetPublicAccountsOfDepartmentDto.java │ │ ├── ImportOtpReqDto.java │ │ ├── ChangeEmailStrategyDto.java │ │ ├── ChangePhoneStrategyDto.java │ │ ├── MFASettingsDto.java │ │ ├── SignInByAmazonPayloadDto.java │ │ ├── ApplicationEnabledExtIdpConnInputDto.java │ │ ├── GetUsersOfPublicAccountDto.java │ │ ├── SendUserResetPasswordEmailLinkBatchDto.java │ │ ├── SignInByFacebookPayloadDto.java │ │ ├── TreeAuthorize.java │ │ ├── CheckRoleMutualExclusionReqDto.java │ │ ├── CreateAsaAccountsBatchItemDto.java │ │ ├── CreateGroupBatchReqDto.java │ │ ├── DeleteAccounDto.java │ │ ├── GetUserAuthResourcePermissionListDto.java │ │ ├── UpdateLoginConfigDto.java │ │ ├── CurrentUsageRespDto.java │ │ ├── UpdateEmailDto.java │ │ ├── GetUserSelectLoginPublicAccountsDto.java │ │ ├── SetUserBaseFieldsReqDto.java │ │ ├── UpdatePhoneDto.java │ │ ├── RightItemRes.java │ │ ├── GetAlipayAuthinfoDto.java │ │ ├── SignInFastpassDto.java │ │ ├── UpdateUserPoolTenantLoginConfigDto.java │ │ ├── PreviewEmailTemplateRespDto.java │ │ ├── CreateNamespacesBatchDto.java │ │ ├── MauPeriodUsageHistory.java │ │ ├── CancelSyncRiskOperationDto.java │ │ ├── OrganizationNameI18nDto.java │ │ ├── TriggerSyncRiskOperationDto.java │ │ ├── DeleteRoleBatchDto.java │ │ ├── CheckRoleMutualExclusionResultDto.java │ │ ├── ListApplicationSubjectDataListDto.java │ │ ├── GetUserPermissionListDataDto.java │ │ ├── TreeResourceAuthAction.java │ │ ├── CreatePermissionNamespacesBatchDto.java │ │ ├── ListResourceTargetsDataDto.java │ │ ├── CheckPermissionDataDto.java │ │ ├── GetFastpassClientAppsDto.java │ │ ├── SendUserResetPasswordEmailLinkBatchResultRespDto.java │ │ ├── UploadDataDto.java │ │ ├── GeoIpLocation.java │ │ ├── GetFastpassQRCodeRelationAppsDto.java │ │ ├── DropDownItemDto.java │ │ ├── CheckResourcePermissionDataDto.java │ │ ├── GetUserAuthResourceListDataDto.java │ │ ├── GetUserResourcePermissionListDataDto.java │ │ ├── BindByRegiserInputApi.java │ │ ├── CellDto.java │ │ ├── DeleteExtIdpDto.java │ │ ├── ListFieldDto.java │ │ ├── ImportTenantHistoryDto.java │ │ ├── ListDto.java │ │ ├── PublicKeyCredentialRpEntityDto.java │ │ ├── DeleteExtIdpConnDto.java │ │ ├── DeleteTerminalUserDto.java │ │ ├── FunctionModelFieldIdDto.java │ │ ├── UpdateAuthEnabledDto.java │ │ ├── UpdateTerminalUserDto.java │ │ ├── errorEmailMsg.java │ │ ├── CreateDenfDto.java │ │ ├── Expand.java │ │ ├── GetOrdersDto.java │ │ ├── GetUserAuthResourcePermissionListDataDto.java │ │ └── ImportModelDto.java │ │ ├── enums │ │ ├── CodeChallengeMethodEnum.java │ │ ├── ProtocolEnum.java │ │ ├── LanguageEnum.java │ │ ├── SignatureEnum.java │ │ └── AuthMethodEnum.java │ │ └── util │ │ └── signature │ │ └── ISignatureComposer.java └── test │ ├── java │ └── resources │ │ ├── go_template.ftl │ │ └── go_template2.ftl │ └── go │ └── test │ ├── GetGroupTest.go │ ├── ImportOtpTest.go │ ├── DeleteExtIdpTest.go │ ├── CreateRolesBatchTest.go │ ├── CreateGroupsBatchTest.go │ ├── DeleteExtIdpConnTest.go │ ├── DeleteGroupsBatchTest.go │ ├── GetRoleTest.go │ ├── ResignUserTest.go │ ├── UpdateExtIdpTest.go │ ├── CreateUsersBatchTest.go │ ├── DeleteUsersBatchTest.go │ ├── ResignUserBatchTest.go │ ├── UpdateUserBatchTest.go │ ├── AddGroupMembersTest.go │ ├── ListExtIdpTest.go │ ├── DeleteRolesBatchTest.go │ ├── DeleteOrganizationTest.go │ ├── KickUsersTest.go │ ├── ListGroupsTest.go │ ├── RemoveGroupMembersTest.go │ ├── TriggerSyncRiskOperationsTest.go │ ├── GetUserGroupsTest.go │ ├── GetUserMfaInfoTest.go │ ├── ListArchivedUsersTest.go │ ├── CheckSessionStatusTest.go │ ├── MakeRequestTest.go │ ├── AssignRoleTest.go │ ├── CreateExtIdpTest.go │ ├── GetApplicationPermissionStrategyTest.go │ ├── GetUserIdentitiesTest.go │ ├── ListUsersTest.go │ ├── RevokeRoleTest.go │ ├── AuthorizeApplicationAccessTest.go │ ├── GetOrganizationTest.go │ ├── GetUserLoggedinAppsTest.go │ ├── ListApplicationActiveUsersTest.go │ ├── CreateGroupTest.go │ ├── GetUserAccessibleAppsTest.go │ ├── GetUserAuthorizedAppsTest.go │ ├── CreateRoleTest.go │ ├── SetUserDepartmentsTest.go │ ├── GetUserLoggedinIdentitiesTest.go │ ├── ListRolesTest.go │ ├── ChangeAssociationStateTest.go │ ├── GetExtIdpTest.go │ ├── GetOrganizationsBatchTest.go │ ├── GetUserRolesTest.go │ ├── ListOrganizationsTest.go │ ├── ResetUserPrincipalAuthenticationInfoTest.go │ ├── ListRoleDepartmentsTest.go │ ├── GetUserPrincipalAuthenticationInfoTest.go │ ├── SearchOrganizationsTest.go │ ├── UpdateApplicationPermissionStrategyTest.go │ ├── SearchDepartmentsTest.go │ ├── UpdateGroupTest.go │ ├── UpdateRoleTest.go │ ├── DeleteDepartmentTest.go │ ├── ExtIdpConnStateByAppsTest.go │ ├── IsUserExistsTest.go │ ├── GetGroupAuthorizedResourcesTest.go │ ├── GetRoleAuthorizedResourcesTest.go │ ├── GetUserTest.go │ ├── UpdateExtIdpConnTest.go │ ├── ChangeConnStateTest.go │ ├── ListTenantExtIdpTest.go │ ├── AddDepartmentMembersTest.go │ ├── GetUserBatchTest.go │ └── ListDepartmentMemberIdsTest.go └── .gitignore /src/main/java/cn/authing/sdk/java/model/Receiver.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.model; 2 | 3 | public interface Receiver { 4 | void onReceiverMessage(String msg); 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateDenfDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | /** 4 | * 更新数据资源扩展字段 5 | */ 6 | public class UpdateDenfDto extends CreateDenfDto { 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/Any.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class Any { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/Node.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class Node { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/Role.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class Role { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/User.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class User { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/OIDCConfig.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class OIDCConfig { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CasIdPConfig.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CasIdPConfig { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SamlIdpConfig.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SamlIdpConfig { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TabConfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class TabConfigDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AccessTokenDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AccessTokenDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/OauthIdpConfig.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class OauthIdpConfig { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/FinishLoginParams.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class FinishLoginParams { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ValidatePEMKeyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ValidatePEMKeyDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ClickCostContactDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ClickCostContactDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckNamespaceParamsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckNamespaceParamsDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListDeviceCredentialDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ListDeviceCredentialDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/LanguageCoinfigGlobalDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class LanguageCoinfigGlobalDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RemoveDeviceCredentialDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RemoveDeviceCredentialDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckDeviceCredentialIdDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckDeviceCredentialIdDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SendInviteTenantUserEmailDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SendInviteTenantUserEmailDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/WebAuthnRemoveCredentialDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class WebAuthnRemoveCredentialDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ISsoPageCustomizationSettingsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ISsoPageCustomizationSettingsDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ApplicationTabMethodsSortConfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ApplicationTabMethodsSortConfigDto { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/authentication/ICasParams.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto.authentication; 2 | 3 | public class ICasParams { 4 | private String service; 5 | 6 | public String getService() { 7 | return service; 8 | } 9 | 10 | public void setService(String service) { 11 | this.service = service; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/enums/CodeChallengeMethodEnum.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.enums; 2 | 3 | public enum CodeChallengeMethodEnum { 4 | S256("S256"), 5 | PLAIN("plain"); 6 | 7 | private String value; 8 | 9 | CodeChallengeMethodEnum(String value) { 10 | this.value = value; 11 | } 12 | 13 | public String getValue() { 14 | return value; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/enums/ProtocolEnum.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.enums; 2 | 3 | public enum ProtocolEnum { 4 | OAUTH("oauth"), 5 | OIDC("oidc"), 6 | CAS("cas"), 7 | SAML("saml"); 8 | 9 | private String value; 10 | 11 | ProtocolEnum(String value) { 12 | this.value = value; 13 | } 14 | 15 | public String getValue() { 16 | return value; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/enums/LanguageEnum.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.enums; 2 | 3 | /** 4 | * @author luojielin 5 | */ 6 | public enum LanguageEnum { 7 | 8 | CHINESE("zh-CN"), 9 | ENGLISH("en-US"); 10 | 11 | private String value; 12 | 13 | LanguageEnum(String value) { 14 | this.value = value; 15 | } 16 | 17 | public String getValue() { 18 | return value; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/enums/SignatureEnum.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.enums; 2 | 3 | public enum SignatureEnum { 4 | X_AUTHING_SIGNATURE_METHOD("HMAC-SHA1"), 5 | X_AUTHING_SIGNATURE_VERSION("1.0"); 6 | 7 | private final String value; 8 | 9 | SignatureEnum (String value) { 10 | this.value = value; 11 | } 12 | 13 | public String getValue() { 14 | return value; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/enums/AuthMethodEnum.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.enums; 2 | 3 | public enum AuthMethodEnum { 4 | CLIENT_SECRET_POST("client_secret_post"), 5 | CLIENT_SECRET_BASIC("client_secret_basic"), 6 | NONE("none"); 7 | 8 | private String value; 9 | 10 | AuthMethodEnum(String value) { 11 | this.value = value; 12 | } 13 | 14 | public String getValue() { 15 | return value; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/test/java/resources/go_template.ftl: -------------------------------------------------------------------------------- 1 | 2 | <#list methods as method> 3 | func TestClient_${method.methodName?cap_first}(t *testing.T) { 4 | request := dto.${method.firstParameter.className}{ 5 | <#list method.firstParameter.properties as p> 6 | ${p.name?cap_first}: ${p.value}, 7 | 8 | } 9 | response := client.${method.methodName?cap_first}(&request) 10 | fmt.Println(response) 11 | } 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CaptchaCodeDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CaptchaCodeDto { 8 | /** 9 | * 随机字符串或者时间戳,防止浏览器缓存 10 | */ 11 | @JsonProperty("r") 12 | private String r; 13 | 14 | public String getR() { 15 | return r; 16 | } 17 | public void setR(String r) { 18 | this.r = r; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetModelDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetModelDto { 8 | /** 9 | * 功能 id 可以从控制台页面获取 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/FunctionModelIdDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class FunctionModelIdDto { 8 | /** 9 | * 功能 id 可以从控制台页面获取 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListWhitelistDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ListWhitelistDto { 8 | /** 9 | * 白名单类型 10 | */ 11 | @JsonProperty("type") 12 | private String type; 13 | 14 | public String getType() { 15 | return type; 16 | } 17 | public void setType(String type) { 18 | this.type = type; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/MfaOtpVerityDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class MfaOtpVerityDto { 8 | /** 9 | * OTP 口令 10 | */ 11 | @JsonProperty("totp") 12 | private String totp; 13 | 14 | public String getTotp() { 15 | return totp; 16 | } 17 | public void setTotp(String totp) { 18 | this.totp = totp; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RemovePostDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RemovePostDto { 8 | /** 9 | * 分组 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TerminalBaseDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class TerminalBaseDto { 8 | /** 9 | * 数据行 id,创建设备时返回的 `id` 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteTerminalDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteTerminalDto { 8 | /** 9 | * 数据行 id,创建设备时返回的 `id` 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetNamespaceDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetNamespaceDto { 8 | /** 9 | * 权限分组唯一标志符 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateTerminalDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdateTerminalDto { 8 | /** 9 | * 数据行 id,创建设备时返回的 `id` 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteNamespaceDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteNamespaceDto { 8 | /** 9 | * 权限分组唯一标志符 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetTenantByCodeDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetTenantByCodeDto { 8 | /** 9 | * 租户 Code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportMetadataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ImportMetadataDto { 8 | /** 9 | * 导入的 json 文件地址 10 | */ 11 | @JsonProperty("file") 12 | private String file; 13 | 14 | public String getFile() { 15 | return file; 16 | } 17 | public void setFile(String file) { 18 | this.file = file; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteApplicationDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteApplicationDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/IsSuccessDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class IsSuccessDto { 8 | /** 9 | * 操作是否成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/IsUserExistsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class IsUserExistsDto { 8 | /** 9 | * 用户是否存在 10 | */ 11 | @JsonProperty("exists") 12 | private Boolean exists; 13 | 14 | public Boolean getExists() { 15 | return exists; 16 | } 17 | public void setExists(Boolean exists) { 18 | this.exists = exists; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AllOperateDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AllOperateDto { 8 | /** 9 | * model Id 10 | */ 11 | @JsonProperty("modelId") 12 | private String modelId; 13 | 14 | public String getModelId() { 15 | return modelId; 16 | } 17 | public void setModelId(String modelId) { 18 | this.modelId = modelId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckDomainAvailable.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckDomainAvailable { 8 | /** 9 | * 域名 10 | */ 11 | @JsonProperty("domain") 12 | private String domain; 13 | 14 | public String getDomain() { 15 | return domain; 16 | } 17 | public void setDomain(String domain) { 18 | this.domain = domain; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GenerateBindExtIdpLinkDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GenerateBindExtIdpLinkDataDto { 8 | /** 9 | * 用户绑定外部身份源的链接 10 | */ 11 | @JsonProperty("url") 12 | private String url; 13 | 14 | public String getUrl() { 15 | return url; 16 | } 17 | public void setUrl(String url) { 18 | this.url = url; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationSecretDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationSecretDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetOrderDetailDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetOrderDetailDto { 8 | /** 9 | * 订单号 10 | */ 11 | @JsonProperty("orderNo") 12 | private String orderNo; 13 | 14 | public String getOrderNo() { 15 | return orderNo; 16 | } 17 | public void setOrderNo(String orderNo) { 18 | this.orderNo = orderNo; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPermissionNamespaceDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPermissionNamespaceDto { 8 | /** 9 | * 权限空间 Code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/LdapUpdateDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class LdapUpdateDto { 8 | /** 9 | * bindDn 密码 10 | */ 11 | @JsonProperty("bindPwd") 12 | private String bindPwd; 13 | 14 | public String getBindPwd() { 15 | return bindPwd; 16 | } 17 | public void setBindPwd(String bindPwd) { 18 | this.bindPwd = bindPwd; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/OtpSecretRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class OtpSecretRespDto { 8 | /** 9 | * MFA OTP 秘钥 10 | */ 11 | @JsonProperty("secret") 12 | private String secret; 13 | 14 | public String getSecret() { 15 | return secret; 16 | } 17 | public void setSecret(String secret) { 18 | this.secret = secret; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeletePermissionNamespaceDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeletePermissionNamespaceDto { 8 | /** 9 | * 权限空间 Code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteTenantDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteTenantDto { 8 | /** 9 | * 租户 ID 10 | */ 11 | @JsonProperty("tenantId") 12 | private String tenantId; 13 | 14 | public String getTenantId() { 15 | return tenantId; 16 | } 17 | public void setTenantId(String tenantId) { 18 | this.tenantId = tenantId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ExportMetadataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ExportMetadataDto { 8 | /** 9 | * 功能 id 10 | */ 11 | @JsonProperty("modelId") 12 | private String modelId; 13 | 14 | public String getModelId() { 15 | return modelId; 16 | } 17 | public void setModelId(String modelId) { 18 | this.modelId = modelId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationSimpleInfoDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationSimpleInfoDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetOrderPayDetailDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetOrderPayDetailDto { 8 | /** 9 | * 订单号 10 | */ 11 | @JsonProperty("orderNo") 12 | private String orderNo; 13 | 14 | public String getOrderNo() { 15 | return orderNo; 16 | } 17 | public void setOrderNo(String orderNo) { 18 | this.orderNo = orderNo; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetTenantCooperatorDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetTenantCooperatorDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RefreshApplicationSecretDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RefreshApplicationSecretDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ResignUserDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ResignUserDataDto { 8 | /** 9 | * 操作是否成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByWechatworkDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByWechatworkDto { 8 | /** 9 | * 企业微信移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ValidatePasswordResultDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ValidatePasswordResultDto { 8 | /** 9 | * 密码是否正确 10 | */ 11 | @JsonProperty("valid") 12 | private Boolean valid; 13 | 14 | public Boolean getValid() { 15 | return valid; 16 | } 17 | public void setValid(Boolean valid) { 18 | this.valid = valid; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByAlipayDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByAlipayDto { 8 | /** 9 | * 支付宝移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByGoogleDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByGoogleDto { 8 | /** 9 | * Google 移动端社会化登录获取到的 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByWechatDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByWechatDto { 8 | /** 9 | * 微信移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetDataPolicyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetDataPolicyDto { 8 | /** 9 | * 数据策略 ID 10 | */ 11 | @JsonProperty("policyId") 12 | private String policyId; 13 | 14 | public String getPolicyId() { 15 | return policyId; 16 | } 17 | public void setPolicyId(String policyId) { 18 | this.policyId = policyId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetFactorDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetFactorDto { 8 | /** 9 | * MFA Factor ID 10 | */ 11 | @JsonProperty("factorId") 12 | private String factorId; 13 | 14 | public String getFactorId() { 15 | return factorId; 16 | } 17 | public void setFactorId(String factorId) { 18 | this.factorId = factorId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetImportTemplateDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetImportTemplateDto { 8 | /** 9 | * 功能 id 10 | */ 11 | @JsonProperty("modelId") 12 | private String modelId; 13 | 14 | public String getModelId() { 15 | return modelId; 16 | } 17 | public void setModelId(String modelId) { 18 | this.modelId = modelId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetMultipleTenantAdminDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetMultipleTenantAdminDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPostOfPublicAccountDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPostOfPublicAccountDto { 8 | /** 9 | * 用户 id 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportTenantDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ImportTenantDataDto { 8 | /** 9 | * 是否操作成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/LinkIdentityDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class LinkIdentityDataDto { 8 | /** 9 | * 是否操作成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ResetFactorDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ResetFactorDto { 8 | /** 9 | * MFA 认证要素 ID 10 | */ 11 | @JsonProperty("factorId") 12 | private String factorId; 13 | 14 | public String getFactorId() { 15 | return factorId; 16 | } 17 | public void setFactorId(String factorId) { 18 | this.factorId = factorId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RestFactorDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RestFactorDto { 8 | /** 9 | * MFA 认证要素 ID 10 | */ 11 | @JsonProperty("factorId") 12 | private String factorId; 13 | 14 | public String getFactorId() { 15 | return factorId; 16 | } 17 | public void setFactorId(String factorId) { 18 | this.factorId = factorId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SendSmsBatchDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SendSmsBatchDataDto { 8 | /** 9 | * 是否操作成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByAlipayPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByAlipayPayloadDto { 8 | /** 9 | * 支付宝移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByApplePayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByApplePayloadDto { 8 | /** 9 | * 苹果移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByDouyinPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByDouyinPayloadDto { 8 | /** 9 | * 抖音移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByGooglePayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByGooglePayloadDto { 8 | /** 9 | * Google 移动端社会化登录获取到的 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByHuaweiPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByHuaweiPayloadDto { 8 | /** 9 | * 华为移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByOPPOPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByOPPOPayloadDto { 8 | /** 9 | * OPPO 移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByWechatPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByWechatPayloadDto { 8 | /** 9 | * 微信移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByXiaomiPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByXiaomiPayloadDto { 8 | /** 9 | * 小米移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnbindDeviceDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnbindDeviceDto { 8 | /** 9 | * 设备唯一标识 10 | */ 11 | @JsonProperty("deviceId") 12 | private String deviceId; 13 | 14 | public String getDeviceId() { 15 | return deviceId; 16 | } 17 | public void setDeviceId(String deviceId) { 18 | this.deviceId = deviceId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnbindExtIdpDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnbindExtIdpDto { 8 | /** 9 | * 外部身份源 ID 10 | */ 11 | @JsonProperty("extIdpId") 12 | private String extIdpId; 13 | 14 | public String getExtIdpId() { 15 | return extIdpId; 16 | } 17 | public void setExtIdpId(String extIdpId) { 18 | this.extIdpId = extIdpId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnlinkExtIdpDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnlinkExtIdpDto { 8 | /** 9 | * 外部身份源 ID 10 | */ 11 | @JsonProperty("extIdpId") 12 | private String extIdpId; 13 | 14 | public String getExtIdpId() { 15 | return extIdpId; 16 | } 17 | public void setExtIdpId(String extIdpId) { 18 | this.extIdpId = extIdpId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/BatchApplicationsAuthDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class BatchApplicationsAuthDto { 8 | /** 9 | * 授权 ID 10 | */ 11 | @JsonProperty("authIds") 12 | private String authIds; 13 | 14 | public String getAuthIds() { 15 | return authIds; 16 | } 17 | public void setAuthIds(String authIds) { 18 | this.authIds = authIds; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckSessionStatusDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckSessionStatusDataDto { 8 | /** 9 | * 是否具有登录态 10 | */ 11 | @JsonProperty("active") 12 | private Boolean active; 13 | 14 | public Boolean getActive() { 15 | return active; 16 | } 17 | public void setActive(Boolean active) { 18 | this.active = active; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteCommonResourcesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteCommonResourcesBatchDto { 8 | /** 9 | * 资源 id 列表 10 | */ 11 | @JsonProperty("ids") 12 | private List ids; 13 | 14 | public List getIds() { 15 | return ids; 16 | } 17 | public void setIds(List ids) { 18 | this.ids = ids; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteDataPolicyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteDataPolicyDto { 8 | /** 9 | * 数据策略 ID 10 | */ 11 | @JsonProperty("policyId") 12 | private String policyId; 13 | 14 | public String getPolicyId() { 15 | return policyId; 16 | } 17 | public void setPolicyId(String policyId) { 18 | this.policyId = policyId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationSecretDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationSecretDataDto { 8 | /** 9 | * 应用密钥 10 | */ 11 | @JsonProperty("secret") 12 | private String secret; 13 | 14 | public String getSecret() { 15 | return secret; 16 | } 17 | public void setSecret(String secret) { 18 | this.secret = secret; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPipelineFunctionDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPipelineFunctionDto { 8 | /** 9 | * Pipeline 函数 ID 10 | */ 11 | @JsonProperty("funcId") 12 | private String funcId; 13 | 14 | public String getFuncId() { 15 | return funcId; 16 | } 17 | public void setFuncId(String funcId) { 18 | this.funcId = funcId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPublicAccountsOfPostDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPublicAccountsOfPostDto { 8 | /** 9 | * 岗位 ID 10 | */ 11 | @JsonProperty("postId") 12 | private String postId; 13 | 14 | public String getPostId() { 15 | return postId; 16 | } 17 | public void setPostId(String postId) { 18 | this.postId = postId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPublicAccountsOfRoleDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPublicAccountsOfRoleDto { 8 | /** 9 | * 角色 ID 10 | */ 11 | @JsonProperty("roleId") 12 | private String roleId; 13 | 14 | public String getRoleId() { 15 | return roleId; 16 | } 17 | public void setRoleId(String roleId) { 18 | this.roleId = roleId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPublicAccountsOfUserDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPublicAccountsOfUserDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetSyncJobDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetSyncJobDto { 8 | /** 9 | * 同步作业 ID 10 | */ 11 | @JsonProperty("syncJobId") 12 | private Integer syncJobId; 13 | 14 | public Integer getSyncJobId() { 15 | return syncJobId; 16 | } 17 | public void setSyncJobId(Integer syncJobId) { 18 | this.syncJobId = syncJobId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetTenantCooperatorMenuDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetTenantCooperatorMenuDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetWebhookDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetWebhookDto { 8 | /** 9 | * Webhook ID 10 | */ 11 | @JsonProperty("webhookId") 12 | private String webhookId; 13 | 14 | public String getWebhookId() { 15 | return webhookId; 16 | } 17 | public void setWebhookId(String webhookId) { 18 | this.webhookId = webhookId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportTenantDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ImportTenantDto { 8 | /** 9 | * excel path 地址 10 | */ 11 | @JsonProperty("excelUrl") 12 | private String excelUrl; 13 | 14 | public String getExcelUrl() { 15 | return excelUrl; 16 | } 17 | public void setExcelUrl(String excelUrl) { 18 | this.excelUrl = excelUrl; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/IsActionAllowedDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class IsActionAllowedDataDto { 8 | /** 9 | * 是否允许 10 | */ 11 | @JsonProperty("allowed") 12 | private Boolean allowed; 13 | 14 | public Boolean getAllowed() { 15 | return allowed; 16 | } 17 | public void setAllowed(Boolean allowed) { 18 | this.allowed = allowed; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/LdapSetEnabledFlagDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class LdapSetEnabledFlagDto { 8 | /** 9 | * 开关是否开启 10 | */ 11 | @JsonProperty("enabled") 12 | private Boolean enabled; 13 | 14 | public Boolean getEnabled() { 15 | return enabled; 16 | } 17 | public void setEnabled(Boolean enabled) { 18 | this.enabled = enabled; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SendEmailBatchDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SendEmailBatchDataDto { 8 | /** 9 | * 是否操作成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SetUserCustomDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SetUserCustomDataDto { 8 | /** 9 | * 操作是否成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByGiteePayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByGiteePayloadDto { 8 | /** 9 | * Gitee 移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByGithubPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByGithubPayloadDto { 8 | /** 9 | * Github 移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByGitlabPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByGitlabPayloadDto { 8 | /** 9 | * GitLab 移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByKuaishouPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByKuaishouPayloadDto { 8 | /** 9 | * 快手移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByLarkBlockPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByLarkBlockPayloadDto { 8 | /** 9 | * 飞书小组件社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInBySlackPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInBySlackPayloadDto { 8 | /** 9 | * Slack 移动端社会化登录获取到的授权码 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnlinkIdentityDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnlinkIdentityDataDto { 8 | /** 9 | * 是否操作成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/VerifyConfigAppDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class VerifyConfigAppDto { 8 | /** 9 | * 搜索关键字 10 | */ 11 | @JsonProperty("keywords") 12 | private String keywords; 13 | 14 | public String getKeywords() { 15 | return keywords; 16 | } 17 | public void setKeywords(String keywords) { 18 | this.keywords = keywords; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByWechatworkDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByWechatworkDto { 8 | /** 9 | * 企业微信移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckQrcodeStatusDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckQrcodeStatusDto { 8 | /** 9 | * 二维码唯一 ID 10 | */ 11 | @JsonProperty("qrcodeId") 12 | private String qrcodeId; 13 | 14 | public String getQrcodeId() { 15 | return qrcodeId; 16 | } 17 | public void setQrcodeId(String qrcodeId) { 18 | this.qrcodeId = qrcodeId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeletePipelineFunctionDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeletePipelineFunctionDto { 8 | /** 9 | * Pipeline 函数 ID 10 | */ 11 | @JsonProperty("funcId") 12 | private String funcId; 13 | 14 | public String getFuncId() { 15 | return funcId; 16 | } 17 | public void setFuncId(String funcId) { 18 | this.funcId = funcId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteTenantCooperatorBodyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteTenantCooperatorBodyDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/I18nDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.LangObject; 7 | 8 | public class I18nDto { 9 | /** 10 | * 支持多语言的字段 11 | */ 12 | @JsonProperty("name") 13 | private LangObject name; 14 | 15 | public LangObject getName() { 16 | return name; 17 | } 18 | public void setName(LangObject name) { 19 | this.name = name; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/OtpVerityRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class OtpVerityRespDto { 8 | /** 9 | * 用户 OTP 校验是否成功 10 | */ 11 | @JsonProperty("verified") 12 | private Boolean verified; 13 | 14 | public Boolean getVerified() { 15 | return verified; 16 | } 17 | public void setVerified(Boolean verified) { 18 | this.verified = verified; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RevokeDeviceSessionDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RevokeDeviceSessionDto { 8 | /** 9 | * 设备唯一标识 10 | */ 11 | @JsonProperty("deviceId") 12 | private String deviceId; 13 | 14 | public String getDeviceId() { 15 | return deviceId; 16 | } 17 | public void setDeviceId(String deviceId) { 18 | this.deviceId = deviceId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByLinkedInPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByLinkedInPayloadDto { 8 | /** 9 | * LinkedIn 移动端社会化登录获取到的 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByLarkInternalDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByLarkInternalDto { 8 | /** 9 | * 飞书自建应用移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByLarkPublicDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByLarkPublicDto { 8 | /** 9 | * 飞书应用商店应用移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreatePublicAccountFromUserDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CreatePublicAccountFromUserDto { 8 | /** 9 | * 公共账号 rowId 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteMultipleTenantAdminBodyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteMultipleTenantAdminBodyDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | 14 | public String getUserId() { 15 | return userId; 16 | } 17 | public void setUserId(String userId) { 18 | this.userId = userId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationPermissionStrategyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationPermissionStrategyDto { 8 | /** 9 | * 应用 ID 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPublicAccountsOfGroupDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPublicAccountsOfGroupDto { 8 | /** 9 | * 分组 ID 10 | */ 11 | @JsonProperty("groupId") 12 | private String groupId; 13 | 14 | public String getGroupId() { 15 | return groupId; 16 | } 17 | public void setGroupId(String groupId) { 18 | this.groupId = groupId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetSyncTaskDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetSyncTaskDto { 8 | /** 9 | * 同步任务 ID 10 | */ 11 | @JsonProperty("syncTaskId") 12 | private Integer syncTaskId; 13 | 14 | public Integer getSyncTaskId() { 15 | return syncTaskId; 16 | } 17 | public void setSyncTaskId(Integer syncTaskId) { 18 | this.syncTaskId = syncTaskId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/MfaTokenIntrospectEndpointParams.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class MfaTokenIntrospectEndpointParams { 8 | /** 9 | * `mfa_token` 的值 10 | */ 11 | @JsonProperty("token") 12 | private String token; 13 | 14 | public String getToken() { 15 | return token; 16 | } 17 | public void setToken(String token) { 18 | this.token = token; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ReUploadPipelineFunctionDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ReUploadPipelineFunctionDto { 8 | /** 9 | * Pipeline 函数 ID 10 | */ 11 | @JsonProperty("funcId") 12 | private String funcId; 13 | 14 | public String getFuncId() { 15 | return funcId; 16 | } 17 | public void setFuncId(String funcId) { 18 | this.funcId = funcId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RefreshApplicationSecretDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class RefreshApplicationSecretDataDto { 8 | /** 9 | * 新的应用密钥 10 | */ 11 | @JsonProperty("secret") 12 | private String secret; 13 | 14 | public String getSecret() { 15 | return secret; 16 | } 17 | public void setSecret(String secret) { 18 | this.secret = secret; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByLarkInternalPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByLarkInternalPayloadDto { 8 | /** 9 | * 飞书自建应用移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByLarkPublicPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByLarkPublicPayloadDto { 8 | /** 9 | * 飞书应用商店应用移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SystmeInfoRSAConfig.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SystmeInfoRSAConfig { 8 | /** 9 | * RSA256 公钥 10 | */ 11 | @JsonProperty("publicKey") 12 | private String publicKey; 13 | 14 | public String getPublicKey() { 15 | return publicKey; 16 | } 17 | public void setPublicKey(String publicKey) { 18 | this.publicKey = publicKey; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SystmeInfoSM2Config.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SystmeInfoSM2Config { 8 | /** 9 | * SM2 公钥 10 | */ 11 | @JsonProperty("publicKey") 12 | private String publicKey; 13 | 14 | public String getPublicKey() { 15 | return publicKey; 16 | } 17 | public void setPublicKey(String publicKey) { 18 | this.publicKey = publicKey; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnbindEmailDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnbindEmailDto { 8 | /** 9 | * 邮箱验证码,需要先调用**发送邮件**接口接收验证码。 10 | */ 11 | @JsonProperty("passCode") 12 | private String passCode; 13 | 14 | public String getPassCode() { 15 | return passCode; 16 | } 17 | public void setPassCode(String passCode) { 18 | this.passCode = passCode; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UnbindPhoneDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UnbindPhoneDto { 8 | /** 9 | * 短信验证码,需要先调用**发送短信**接口接收验证码。 10 | */ 11 | @JsonProperty("passCode") 12 | private String passCode; 13 | 14 | public String getPassCode() { 15 | return passCode; 16 | } 17 | public void setPassCode(String passCode) { 18 | this.passCode = passCode; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AlipayAuthInfoDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AlipayAuthInfoDataDto { 8 | /** 9 | * 拉起支付宝需要的 AuthInfo 10 | */ 11 | @JsonProperty("authInfo") 12 | private String authInfo; 13 | 14 | public String getAuthInfo() { 15 | return authInfo; 16 | } 17 | public void setAuthInfo(String authInfo) { 18 | this.authInfo = authInfo; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetAppLoginQrcodeStatusDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetAppLoginQrcodeStatusDto { 8 | /** 9 | * 二维码唯一 ID 10 | */ 11 | @JsonProperty("qrcodeId") 12 | private String qrcodeId; 13 | 14 | public String getQrcodeId() { 15 | return qrcodeId; 16 | } 17 | public void setQrcodeId(String qrcodeId) { 18 | this.qrcodeId = qrcodeId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetApplicationPublicConfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetApplicationPublicConfigDto { 8 | /** 9 | * 应用 ID,可选,默认会从请求的域名获取对应的应用 10 | */ 11 | @JsonProperty("appId") 12 | private String appId; 13 | 14 | public String getAppId() { 15 | return appId; 16 | } 17 | public void setAppId(String appId) { 18 | this.appId = appId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/HasAnyRoleDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class HasAnyRoleDto { 8 | /** 9 | * 是否拥有其中某一个角色 10 | */ 11 | @JsonProperty("hasAnyRole") 12 | private Boolean hasAnyRole; 13 | 14 | public Boolean getHasAnyRole() { 15 | return hasAnyRole; 16 | } 17 | public void setHasAnyRole(Boolean hasAnyRole) { 18 | this.hasAnyRole = hasAnyRole; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateTenantAppqrcodeState.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdateTenantAppqrcodeState { 8 | /** 9 | * 是否允许开启扫码登录 10 | */ 11 | @JsonProperty("enabled") 12 | private Boolean enabled; 13 | 14 | public Boolean getEnabled() { 15 | return enabled; 16 | } 17 | public void setEnabled(Boolean enabled) { 18 | this.enabled = enabled; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteAdminRoleDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteAdminRoleDto { 8 | /** 9 | * 角色 code 列表 10 | */ 11 | @JsonProperty("codeList") 12 | private List codeList; 13 | 14 | public List getCodeList() { 15 | return codeList; 16 | } 17 | public void setCodeList(List codeList) { 18 | this.codeList = codeList; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteGroupsReqDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteGroupsReqDto { 8 | /** 9 | * 分组 code 列表 10 | */ 11 | @JsonProperty("codeList") 12 | private List codeList; 13 | 14 | public List getCodeList() { 15 | return codeList; 16 | } 17 | public void setCodeList(List codeList) { 18 | this.codeList = codeList; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetNamespacesBatchDto { 8 | /** 9 | * 权限分组 code 列表,批量可以使用逗号分隔 10 | */ 11 | @JsonProperty("codeList") 12 | private String codeList; 13 | 14 | public String getCodeList() { 15 | return codeList; 16 | } 17 | public void setCodeList(String codeList) { 18 | this.codeList = codeList; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPermissionNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPermissionNamespacesBatchDto { 8 | /** 9 | * 权限空间 code 列表,批量可以使用逗号分隔 10 | */ 11 | @JsonProperty("codes") 12 | private String codes; 13 | 14 | public String getCodes() { 15 | return codes; 16 | } 17 | public void setCodes(String codes) { 18 | this.codes = codes; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserAuthResourceStructDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetUserAuthResourceStructDto { 8 | /** 9 | * 数据资源 Code 10 | */ 11 | @JsonProperty("resource") 12 | private String resource; 13 | 14 | public String getResource() { 15 | return resource; 16 | } 17 | public void setResource(String resource) { 18 | this.resource = resource; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TriggerSyncTaskDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class TriggerSyncTaskDto { 8 | /** 9 | * 同步任务 ID 10 | */ 11 | @JsonProperty("syncTaskId") 12 | private Integer syncTaskId; 13 | 14 | public Integer getSyncTaskId() { 15 | return syncTaskId; 16 | } 17 | public void setSyncTaskId(Integer syncTaskId) { 18 | this.syncTaskId = syncTaskId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/AuthenticateByWechatworkAgencyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class AuthenticateByWechatworkAgencyDto { 8 | /** 9 | * 企业微信(代开发模式)移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckDomainAvailableDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckDomainAvailableDataDto { 8 | /** 9 | * 是否可用 10 | */ 11 | @JsonProperty("available") 12 | private Boolean available; 13 | 14 | public Boolean getAvailable() { 15 | return available; 16 | } 17 | public void setAvailable(Boolean available) { 18 | this.available = available; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DepartmentI18nDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.LangObject; 7 | 8 | public class DepartmentI18nDto { 9 | /** 10 | * 支持多语言的字段 11 | */ 12 | @JsonProperty("name") 13 | private LangObject name; 14 | 15 | public LangObject getName() { 16 | return name; 17 | } 18 | public void setName(LangObject name) { 19 | this.name = name; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetMyRoleListDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetMyRoleListDto { 8 | /** 9 | * 所属权限分组(权限空间)的 Code,不传获取默认权限分组。 10 | */ 11 | @JsonProperty("namespace") 12 | private String namespace; 13 | 14 | public String getNamespace() { 15 | return namespace; 16 | } 17 | public void setNamespace(String namespace) { 18 | this.namespace = namespace; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByWechatworkAgencyPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByWechatworkAgencyPayloadDto { 8 | /** 9 | * 企业微信(代开发模式)移动端社会化登录返回的一次性临时 code 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/VerifyRegistrationResultDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class VerifyRegistrationResultDto { 8 | /** 9 | * 验证注册认证器结果 10 | */ 11 | @JsonProperty("verified") 12 | private Boolean verified; 13 | 14 | public Boolean getVerified() { 15 | return verified; 16 | } 17 | public void setVerified(Boolean verified) { 18 | this.verified = verified; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckPushcodeStatusDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckPushcodeStatusDto { 8 | /** 9 | * 推送码(推送登录唯一 ID) 10 | */ 11 | @JsonProperty("pushCodeId") 12 | private String pushCodeId; 13 | 14 | public String getPushCodeId() { 15 | return pushCodeId; 16 | } 17 | public void setPushCodeId(String pushCodeId) { 18 | this.pushCodeId = pushCodeId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CustomFieldI18n.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.LangObject; 7 | 8 | public class CustomFieldI18n { 9 | /** 10 | * 支持多语言的字段 11 | */ 12 | @JsonProperty("label") 13 | private LangObject label; 14 | 15 | public LangObject getLabel() { 16 | return label; 17 | } 18 | public void setLabel(LangObject label) { 19 | this.label = label; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteAccessKeyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteAccessKeyDto { 8 | /** 9 | * accessKeyId 10 | */ 11 | @JsonProperty("accessKeyId") 12 | private String accessKeyId; 13 | 14 | public String getAccessKeyId() { 15 | return accessKeyId; 16 | } 17 | public void setAccessKeyId(String accessKeyId) { 18 | this.accessKeyId = accessKeyId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeletePermissionNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeletePermissionNamespacesBatchDto { 8 | /** 9 | * 权限分组 code 列表 10 | */ 11 | @JsonProperty("codes") 12 | private List codes; 13 | 14 | public List getCodes() { 15 | return codes; 16 | } 17 | public void setCodes(List codes) { 18 | this.codes = codes; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TriggerSyncTaskDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class TriggerSyncTaskDataDto { 8 | /** 9 | * 此次执行同步任务的同步作业 ID 10 | */ 11 | @JsonProperty("syncJobId") 12 | private Integer syncJobId; 13 | 14 | public Integer getSyncJobId() { 15 | return syncJobId; 16 | } 17 | public void setSyncJobId(Integer syncJobId) { 18 | this.syncJobId = syncJobId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckDataPolicyExistsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckDataPolicyExistsDto { 8 | /** 9 | * 数据策略名称,用户池唯一 10 | */ 11 | @JsonProperty("policyName") 12 | private String policyName; 13 | 14 | public String getPolicyName() { 15 | return policyName; 16 | } 17 | public void setPolicyName(String policyName) { 18 | this.policyName = policyName; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteNamespacesBatchDto { 8 | /** 9 | * 权限分组 code 列表 10 | */ 11 | @JsonProperty("codeList") 12 | private List codeList; 13 | 14 | public List getCodeList() { 15 | return codeList; 16 | } 17 | public void setCodeList(List codeList) { 18 | this.codeList = codeList; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteWebhookDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteWebhookDto { 8 | /** 9 | * webhookId 数组 10 | */ 11 | @JsonProperty("webhookIds") 12 | private List webhookIds; 13 | 14 | public List getWebhookIds() { 15 | return webhookIds; 16 | } 17 | public void setWebhookIds(List webhookIds) { 18 | this.webhookIds = webhookIds; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ResetPrincipalAuthenticationInfoRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ResetPrincipalAuthenticationInfoRespDto { 8 | /** 9 | * 操作是否成功 10 | */ 11 | @JsonProperty("success") 12 | private Boolean success; 13 | 14 | public Boolean getSuccess() { 15 | return success; 16 | } 17 | public void setSuccess(Boolean success) { 18 | this.success = success; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByWechatMiniProgramPhoneInfoPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByWechatMiniProgramPhoneInfoPayloadDto { 8 | /** 9 | * 小程序获取用户手机号返回的 `code` 10 | */ 11 | @JsonProperty("code") 12 | private String code; 13 | 14 | public String getCode() { 15 | return code; 16 | } 17 | public void setCode(String code) { 18 | this.code = code; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPushCodeRelationAppsDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPushCodeRelationAppsDataDto { 8 | /** 9 | * 发起推送登录的应用关联的客户端应用数据 10 | */ 11 | @JsonProperty("appIds") 12 | private List appIds; 13 | 14 | public List getAppIds() { 15 | return appIds; 16 | } 17 | public void setAppIds(List appIds) { 18 | this.appIds = appIds; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreateRolesBatch.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.RoleListItem; 7 | 8 | public class CreateRolesBatch { 9 | /** 10 | * 角色列表 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserPasswordCiphertextDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetUserPasswordCiphertextDataDto { 8 | /** 9 | * 用户密码加密的密文 10 | */ 11 | @JsonProperty("ciphertext") 12 | private String ciphertext; 13 | 14 | public String getCiphertext() { 15 | return ciphertext; 16 | } 17 | public void setCiphertext(String ciphertext) { 18 | this.ciphertext = ciphertext; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TriggerWebhookData.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.Any; 7 | 8 | public class TriggerWebhookData { 9 | /** 10 | * 原来接口返回的 response 数据 11 | */ 12 | @JsonProperty("response") 13 | private Any response; 14 | 15 | public Any getResponse() { 16 | return response; 17 | } 18 | public void setResponse(Any response) { 19 | this.response = response; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/IsUserInDepartmentDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class IsUserInDepartmentDataDto { 8 | /** 9 | * 是否在此部门内 10 | */ 11 | @JsonProperty("inDepartment") 12 | private Boolean inDepartment; 13 | 14 | public Boolean getInDepartment() { 15 | return inDepartment; 16 | } 17 | public void setInDepartment(Boolean inDepartment) { 18 | this.inDepartment = inDepartment; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByQQPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByQQPayloadDto { 8 | /** 9 | * QQ 移动端社会化登录获取到的 access_token 10 | */ 11 | @JsonProperty("access_token") 12 | private String accessToken; 13 | 14 | public String getAccessToken() { 15 | return accessToken; 16 | } 17 | public void setAccessToken(String accessToken) { 18 | this.accessToken = accessToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/LanguageCoinfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.LanguageCoinfigGlobalDto; 7 | 8 | public class LanguageCoinfigDto { 9 | @JsonProperty("global") 10 | private LanguageCoinfigGlobalDto global; 11 | 12 | public LanguageCoinfigGlobalDto getGlobal() { 13 | return global; 14 | } 15 | public void setGlobal(LanguageCoinfigGlobalDto global) { 16 | this.global = global; 17 | } 18 | 19 | 20 | 21 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByWeiboPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByWeiboPayloadDto { 8 | /** 9 | * 新浪微博移动端社会化登录获取到的 access_token 10 | */ 11 | @JsonProperty("access_token") 12 | private String accessToken; 13 | 14 | public String getAccessToken() { 15 | return accessToken; 16 | } 17 | public void setAccessToken(String accessToken) { 18 | this.accessToken = accessToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetPublicAccountsOfDepartmentDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetPublicAccountsOfDepartmentDto { 8 | /** 9 | * 部门 ID 10 | */ 11 | @JsonProperty("departmentId") 12 | private String departmentId; 13 | 14 | public String getDepartmentId() { 15 | return departmentId; 16 | } 17 | public void setDepartmentId(String departmentId) { 18 | this.departmentId = departmentId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportOtpReqDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.ImportOtpItemDto; 7 | 8 | public class ImportOtpReqDto { 9 | /** 10 | * 参数列表 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ChangeEmailStrategyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ChangeEmailStrategyDto { 8 | /** 9 | * 修改邮箱时是否验证旧邮箱 10 | */ 11 | @JsonProperty("verifyOldEmail") 12 | private Boolean verifyOldEmail; 13 | 14 | public Boolean getVerifyOldEmail() { 15 | return verifyOldEmail; 16 | } 17 | public void setVerifyOldEmail(Boolean verifyOldEmail) { 18 | this.verifyOldEmail = verifyOldEmail; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ChangePhoneStrategyDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ChangePhoneStrategyDto { 8 | /** 9 | * 修改手机号时是否验证旧手机号 10 | */ 11 | @JsonProperty("verifyOldPhone") 12 | private Boolean verifyOldPhone; 13 | 14 | public Boolean getVerifyOldPhone() { 15 | return verifyOldPhone; 16 | } 17 | public void setVerifyOldPhone(Boolean verifyOldPhone) { 18 | this.verifyOldPhone = verifyOldPhone; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/MFASettingsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class MFASettingsDto { 8 | /** 9 | * 开启的 MFA 认证因素列表 10 | */ 11 | @JsonProperty("enabledFactors") 12 | private List enabledFactors; 13 | 14 | public List getEnabledFactors() { 15 | return enabledFactors; 16 | } 17 | public void setEnabledFactors(List enabledFactors) { 18 | this.enabledFactors = enabledFactors; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByAmazonPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByAmazonPayloadDto { 8 | /** 9 | * 亚马逊移动端社会化登录获取到的访问令牌 `access_token` 10 | */ 11 | @JsonProperty("access_token") 12 | private String accessToken; 13 | 14 | public String getAccessToken() { 15 | return accessToken; 16 | } 17 | public void setAccessToken(String accessToken) { 18 | this.accessToken = accessToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | *.cmd 22 | *.mvnw 23 | *.mvn 24 | mvnw 25 | 26 | 27 | ### NetBeans ### 28 | /nbproject/private/ 29 | /nbbuild/ 30 | /dist/ 31 | /nbdist/ 32 | /.nb-gradle/ 33 | build/ 34 | !**/src/main/**/build/ 35 | !**/src/test/**/build/ 36 | 37 | ### VS Code ### 38 | .vscode/ 39 | 40 | .DS_Store -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ApplicationEnabledExtIdpConnInputDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ApplicationEnabledExtIdpConnInputDto { 8 | /** 9 | * 身份源连接 ID 10 | */ 11 | @JsonProperty("extIdpConnId") 12 | private String extIdpConnId; 13 | 14 | public String getExtIdpConnId() { 15 | return extIdpConnId; 16 | } 17 | public void setExtIdpConnId(String extIdpConnId) { 18 | this.extIdpConnId = extIdpConnId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUsersOfPublicAccountDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetUsersOfPublicAccountDto { 8 | /** 9 | * 公共账号 ID 10 | */ 11 | @JsonProperty("publicAccountId") 12 | private String publicAccountId; 13 | 14 | public String getPublicAccountId() { 15 | return publicAccountId; 16 | } 17 | public void setPublicAccountId(String publicAccountId) { 18 | this.publicAccountId = publicAccountId; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SendUserResetPasswordEmailLinkBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import java.util.List; 6 | 7 | public class SendUserResetPasswordEmailLinkBatchDto { 8 | 9 | @JsonProperty("users") 10 | private List users; 11 | 12 | 13 | public List getUsers() { 14 | return users; 15 | } 16 | public void setUsers(List users) { 17 | this.users = users; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInByFacebookPayloadDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class SignInByFacebookPayloadDto { 8 | /** 9 | * Facebook 移动端社会化登录获取到的 access_token 10 | */ 11 | @JsonProperty("access_token") 12 | private String accessToken; 13 | 14 | public String getAccessToken() { 15 | return accessToken; 16 | } 17 | public void setAccessToken(String accessToken) { 18 | this.accessToken = accessToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TreeAuthorize.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.TreeAuthBo; 7 | 8 | public class TreeAuthorize { 9 | /** 10 | * 树资源授权列表 11 | */ 12 | @JsonProperty("authList") 13 | private List authList; 14 | 15 | public List getAuthList() { 16 | return authList; 17 | } 18 | public void setAuthList(List authList) { 19 | this.authList = authList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckRoleMutualExclusionReqDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.RoleCodeDto; 7 | 8 | public class CheckRoleMutualExclusionReqDto { 9 | /** 10 | * 角色信息列表 11 | */ 12 | @JsonProperty("roles") 13 | private List roles; 14 | 15 | public List getRoles() { 16 | return roles; 17 | } 18 | public void setRoles(List roles) { 19 | this.roles = roles; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreateAsaAccountsBatchItemDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CreateAsaAccountsBatchItemDto { 8 | /** 9 | * 账号信息,一般为包含 "account", "password" key 的键值对 10 | */ 11 | @JsonProperty("accountInfo") 12 | private Object accountInfo; 13 | 14 | public Object getAccountInfo() { 15 | return accountInfo; 16 | } 17 | public void setAccountInfo(Object accountInfo) { 18 | this.accountInfo = accountInfo; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreateGroupBatchReqDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CreateGroupReqDto; 7 | 8 | public class CreateGroupBatchReqDto { 9 | /** 10 | * 批量分组 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteAccounDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteAccounDto { 8 | /** 9 | * 注销账户的 token 10 | */ 11 | @JsonProperty("deleteAccountToken") 12 | private String deleteAccountToken; 13 | 14 | public String getDeleteAccountToken() { 15 | return deleteAccountToken; 16 | } 17 | public void setDeleteAccountToken(String deleteAccountToken) { 18 | this.deleteAccountToken = deleteAccountToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserAuthResourcePermissionListDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetUserAuthResourcePermissionListDto { 8 | /** 9 | * 数据资源路径列表,**树资源需到具体树节点** 10 | */ 11 | @JsonProperty("resources") 12 | private List resources; 13 | 14 | public List getResources() { 15 | return resources; 16 | } 17 | public void setResources(List resources) { 18 | this.resources = resources; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateLoginConfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.UpdateLoginConfig; 7 | 8 | public class UpdateLoginConfigDto { 9 | /** 10 | * 应用登录配置更新内容 11 | */ 12 | @JsonProperty("update") 13 | private UpdateLoginConfig update; 14 | 15 | public UpdateLoginConfig getUpdate() { 16 | return update; 17 | } 18 | public void setUpdate(UpdateLoginConfig update) { 19 | this.update = update; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/GetGroupTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetGroupDto{ 20 | Code: "code_9665", 21 | } 22 | response := client.GetGroup(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/test/go/test/ImportOtpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ImportOtpReqDto{ 20 | List: nil, 21 | } 22 | response := client.ImportOtp(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CurrentUsageRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CurrentUsageDto; 7 | 8 | public class CurrentUsageRespDto { 9 | /** 10 | * 当前用量实体 11 | */ 12 | @JsonProperty("usages") 13 | private List usages; 14 | 15 | public List getUsages() { 16 | return usages; 17 | } 18 | public void setUsages(List usages) { 19 | this.usages = usages; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateEmailDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdateEmailDto { 8 | /** 9 | * 用于临时修改邮箱的 token,可从**发起修改邮箱的验证请求**接口获取。 10 | */ 11 | @JsonProperty("updateEmailToken") 12 | private String updateEmailToken; 13 | 14 | public String getUpdateEmailToken() { 15 | return updateEmailToken; 16 | } 17 | public void setUpdateEmailToken(String updateEmailToken) { 18 | this.updateEmailToken = updateEmailToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserSelectLoginPublicAccountsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetUserSelectLoginPublicAccountsDto { 8 | /** 9 | * 是否包含当前个人用户基本信息 10 | */ 11 | @JsonProperty("withOriginUser") 12 | private Boolean withOriginUser; 13 | 14 | public Boolean getWithOriginUser() { 15 | return withOriginUser; 16 | } 17 | public void setWithOriginUser(Boolean withOriginUser) { 18 | this.withOriginUser = withOriginUser; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SetUserBaseFieldsReqDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.SetUserBaseFieldDto; 7 | 8 | public class SetUserBaseFieldsReqDto { 9 | /** 10 | * 自定义字段列表 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdatePhoneDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdatePhoneDto { 8 | /** 9 | * 用于临时修改手机号的 token,可从**发起修改手机号的验证请求**接口获取。 10 | */ 11 | @JsonProperty("updatePhoneToken") 12 | private String updatePhoneToken; 13 | 14 | public String getUpdatePhoneToken() { 15 | return updatePhoneToken; 16 | } 17 | public void setUpdatePhoneToken(String updatePhoneToken) { 18 | this.updatePhoneToken = updatePhoneToken; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/test/go/test/DeleteExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteExtIdpDto{ 20 | Id: "id_7435", 21 | } 22 | response := client.DeleteExtIdp(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/RightItemRes.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.RightItemDto; 7 | 8 | public class RightItemRes { 9 | /** 10 | * 响应数据 11 | */ 12 | @JsonProperty("rightsItems") 13 | private List rightsItems; 14 | 15 | public List getRightsItems() { 16 | return rightsItems; 17 | } 18 | public void setRightsItems(List rightsItems) { 19 | this.rightsItems = rightsItems; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/CreateRolesBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateRolesBatch{ 20 | List: nil, 21 | } 22 | response := client.CreateRolesBatch(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/model/ClientCredentialInput.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.model; 2 | 3 | public class ClientCredentialInput { 4 | 5 | private String accessKey; 6 | 7 | private String accessSecret; 8 | 9 | public String getAccessKey() { 10 | return accessKey; 11 | } 12 | 13 | public void setAccessKey(String accessKey) { 14 | this.accessKey = accessKey; 15 | } 16 | 17 | public String getAccessSecret() { 18 | return accessSecret; 19 | } 20 | 21 | public void setAccessSecret(String accessSecret) { 22 | this.accessSecret = accessSecret; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/test/go/test/CreateGroupsBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateGroupBatchReqDto{ 20 | List: nil, 21 | } 22 | response := client.CreateGroupsBatch(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/test/go/test/DeleteExtIdpConnTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteExtIdpConnDto{ 20 | Id: "id_3250", 21 | } 22 | response := client.DeleteExtIdpConn(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/test/go/test/DeleteGroupsBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteGroupsReqDto{ 20 | CodeList: nil, 21 | } 22 | response := client.DeleteGroupsBatch(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetAlipayAuthinfoDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetAlipayAuthinfoDto { 8 | /** 9 | * 外部身份源连接标志符 10 | */ 11 | @JsonProperty("extIdpConnidentifier") 12 | private String extIdpConnidentifier; 13 | 14 | public String getExtIdpConnidentifier() { 15 | return extIdpConnidentifier; 16 | } 17 | public void setExtIdpConnidentifier(String extIdpConnidentifier) { 18 | this.extIdpConnidentifier = extIdpConnidentifier; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SignInFastpassDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.SignInFastpassOptionsDto; 7 | 8 | public class SignInFastpassDto { 9 | /** 10 | * 可选参数 11 | */ 12 | @JsonProperty("options") 13 | private SignInFastpassOptionsDto options; 14 | 15 | public SignInFastpassOptionsDto getOptions() { 16 | return options; 17 | } 18 | public void setOptions(SignInFastpassOptionsDto options) { 19 | this.options = options; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateUserPoolTenantLoginConfigDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.UpdateLoginConfig; 7 | 8 | public class UpdateUserPoolTenantLoginConfigDto { 9 | /** 10 | * 应用登录配置更新内容 11 | */ 12 | @JsonProperty("update") 13 | private UpdateLoginConfig update; 14 | 15 | public UpdateLoginConfig getUpdate() { 16 | return update; 17 | } 18 | public void setUpdate(UpdateLoginConfig update) { 19 | this.update = update; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/PreviewEmailTemplateRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.PreviewEmailTemplateDataDto; 7 | 8 | public class PreviewEmailTemplateRespDto { 9 | /** 10 | * 响应数据 11 | */ 12 | @JsonProperty("data") 13 | private PreviewEmailTemplateDataDto data; 14 | 15 | public PreviewEmailTemplateDataDto getData() { 16 | return data; 17 | } 18 | public void setData(PreviewEmailTemplateDataDto data) { 19 | this.data = data; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/GetRoleTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetRoleDto{ 20 | Code: "code_8682", 21 | Namespace: "namespace_3902", 22 | } 23 | response := client.GetRole(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ResignUserTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ResignUserReqDto{ 20 | UserId: "userId_7562", 21 | UserIdType: , 22 | } 23 | response := client.ResignUser(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateExtIdpDto{ 20 | Id: "id_372", 21 | Name: "name_2232", 22 | } 23 | response := client.UpdateExtIdp(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/CreateUsersBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateUserBatchReqDto{ 20 | List: nil, 21 | Options: nil, 22 | } 23 | response := client.CreateUsersBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/DeleteUsersBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteUsersBatchDto{ 20 | UserIds: nil, 21 | Options: nil, 22 | } 23 | response := client.DeleteUsersBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ResignUserBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ResignUserBatchReqDto{ 20 | UserIds: nil, 21 | UserIdType: , 22 | } 23 | response := client.ResignUserBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateUserBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateUserBatchReqDto{ 20 | List: nil, 21 | Options: nil, 22 | } 23 | response := client.UpdateUserBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreateNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CreateNamespacesBatchItemDto; 7 | 8 | public class CreateNamespacesBatchDto { 9 | /** 10 | * 权限分组列表 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/MauPeriodUsageHistory.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.MauPeriodUsageHistoryDto; 7 | 8 | public class MauPeriodUsageHistory { 9 | /** 10 | * 响应数据 11 | */ 12 | @JsonProperty("records") 13 | private List records; 14 | 15 | public List getRecords() { 16 | return records; 17 | } 18 | public void setRecords(List records) { 19 | this.records = records; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/AddGroupMembersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.AddGroupMembersReqDto{ 20 | UserIds: nil, 21 | Code: "code_9838", 22 | } 23 | response := client.AddGroupMembers(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ListExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListExtIdpDto{ 20 | TenantId: "tenantId_6555", 21 | AppId: "appId_3375", 22 | } 23 | response := client.ListExtIdp(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CancelSyncRiskOperationDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CancelSyncRiskOperationDto { 8 | /** 9 | * 同步任务风险操作 ID 10 | */ 11 | @JsonProperty("syncRiskOperationIds") 12 | private List syncRiskOperationIds; 13 | 14 | public List getSyncRiskOperationIds() { 15 | return syncRiskOperationIds; 16 | } 17 | public void setSyncRiskOperationIds(List syncRiskOperationIds) { 18 | this.syncRiskOperationIds = syncRiskOperationIds; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/OrganizationNameI18nDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.LangObject; 7 | 8 | public class OrganizationNameI18nDto { 9 | /** 10 | * 支持多语言的字段 11 | */ 12 | @JsonProperty("organizationName") 13 | private LangObject organizationName; 14 | 15 | public LangObject getOrganizationName() { 16 | return organizationName; 17 | } 18 | public void setOrganizationName(LangObject organizationName) { 19 | this.organizationName = organizationName; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/DeleteRolesBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteRoleDto{ 20 | CodeList: nil, 21 | Namespace: "namespace_1763", 22 | } 23 | response := client.DeleteRolesBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TriggerSyncRiskOperationDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class TriggerSyncRiskOperationDto { 8 | /** 9 | * 同步任务风险操作 ID 10 | */ 11 | @JsonProperty("syncRiskOperationIds") 12 | private List syncRiskOperationIds; 13 | 14 | public List getSyncRiskOperationIds() { 15 | return syncRiskOperationIds; 16 | } 17 | public void setSyncRiskOperationIds(List syncRiskOperationIds) { 18 | this.syncRiskOperationIds = syncRiskOperationIds; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/test/go/test/DeleteOrganizationTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteOrganizationReqDto{ 20 | OrganizationCode: "organizationCode_1906", 21 | } 22 | response := client.DeleteOrganization(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/test/go/test/KickUsersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.KickUsersDto{ 20 | AppIds: nil, 21 | UserId: "userId_3370", 22 | Options: nil, 23 | } 24 | response := client.KickUsers(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/ListGroupsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListGroupsDto{ 20 | Keywords: "keywords_8480", 21 | Page: 0, 22 | Limit: 0, 23 | } 24 | response := client.ListGroups(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/RemoveGroupMembersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.RemoveGroupMembersReqDto{ 20 | UserIds: nil, 21 | Code: "code_2661", 22 | } 23 | response := client.RemoveGroupMembers(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/TriggerSyncRiskOperationsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.TriggerSyncRiskOperationDto{ 20 | SyncRiskOperationIds: nil, 21 | } 22 | response := client.TriggerSyncRiskOperations(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteRoleBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.RoleCodeAndNamespaceDto; 7 | 8 | public class DeleteRoleBatchDto { 9 | /** 10 | * 角色 Code 和 namespace 列表 11 | */ 12 | @JsonProperty("roleList") 13 | private List roleList; 14 | 15 | public List getRoleList() { 16 | return roleList; 17 | } 18 | public void setRoleList(List roleList) { 19 | this.roleList = roleList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/GetUserGroupsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserGroupsDto{ 20 | UserId: "userId_9494", 21 | UserIdType: "userIdType_7695", 22 | } 23 | response := client.GetUserGroups(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserMfaInfoTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserMfaInfoDto{ 20 | UserId: "userId_508", 21 | UserIdType: "userIdType_4155", 22 | } 23 | response := client.GetUserMfaInfo(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ListArchivedUsersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListArchivedUsersDto{ 20 | Page: 0, 21 | Limit: 0, 22 | StartAt: 0, 23 | } 24 | response := client.ListArchivedUsers(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckRoleMutualExclusionResultDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CheckRoleMutualExclusionResultDto { 8 | /** 9 | * 角色列表中是否存在互斥关系 10 | */ 11 | @JsonProperty("existMutuallyExclusive") 12 | private Boolean existMutuallyExclusive; 13 | 14 | public Boolean getExistMutuallyExclusive() { 15 | return existMutuallyExclusive; 16 | } 17 | public void setExistMutuallyExclusive(Boolean existMutuallyExclusive) { 18 | this.existMutuallyExclusive = existMutuallyExclusive; 19 | } 20 | 21 | 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListApplicationSubjectDataListDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.ListApplicationSubjectDataDto; 7 | 8 | public class ListApplicationSubjectDataListDto { 9 | /** 10 | * 列表数据 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/CheckSessionStatusTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CheckSessionStatusDto{ 20 | AppId: "appId_9355", 21 | UserId: "userId_4041", 22 | } 23 | response := client.CheckSessionStatus(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/MakeRequestTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.MakeRequestReqDto{ 20 | Method: "method_8661", 21 | Url: "url_4493", 22 | Data: nil, 23 | } 24 | response := client.MakeRequest(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserPermissionListDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import java.util.List; 6 | 7 | public class GetUserPermissionListDataDto { 8 | /** 9 | * 用户权限列表 10 | */ 11 | @JsonProperty("userPermissionList") 12 | private List userPermissionList; 13 | 14 | public List getUserPermissionList() { 15 | return userPermissionList; 16 | } 17 | 18 | public void setUserPermissionList(List userPermissionList) { 19 | this.userPermissionList = userPermissionList; 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/test/go/test/AssignRoleTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.AssignRoleDto{ 20 | Targets: nil, 21 | Code: "code_126", 22 | Namespace: "namespace_3932", 23 | } 24 | response := client.AssignRole(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/CreateExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateExtIdpDto{ 20 | Type: , 21 | Name: "name_2917", 22 | TenantId: "tenantId_3512", 23 | } 24 | response := client.CreateExtIdp(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/GetApplicationPermissionStrategyTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetApplicationPermissionStrategyDto{ 20 | AppId: "appId_3708", 21 | } 22 | response := client.GetApplicationPermissionStrategy(&request) 23 | fmt.Println(response) 24 | } 25 | 26 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserIdentitiesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserIdentitiesDto{ 20 | UserId: "userId_9094", 21 | UserIdType: "userIdType_6583", 22 | } 23 | response := client.GetUserIdentities(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ListUsersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListUsersRequestDto{ 20 | Query: "query_318", 21 | AdvancedFilter: nil, 22 | Options: nil, 23 | } 24 | response := client.ListUsers(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/RevokeRoleTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.RevokeRoleDto{ 20 | Targets: nil, 21 | Code: "code_5272", 22 | Namespace: "namespace_3830", 23 | } 24 | response := client.RevokeRole(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/AuthorizeApplicationAccessTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.AddApplicationPermissionRecord{ 20 | List: nil, 21 | AppId: "appId_5344", 22 | } 23 | response := client.AuthorizeApplicationAccess(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/GetOrganizationTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetOrganizationDto{ 20 | OrganizationCode: "organizationCode_2466", 21 | WithCustomData: false, 22 | } 23 | response := client.GetOrganization(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserLoggedinAppsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserLoggedinAppsDto{ 20 | UserId: "userId_2850", 21 | UserIdType: "userIdType_3338", 22 | } 23 | response := client.GetUserLoggedinApps(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ListApplicationActiveUsersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListApplicationActiveUsersDto{ 20 | AppId: "appId_8391", 21 | Options: nil, 22 | } 23 | response := client.ListApplicationActiveUsers(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/TreeResourceAuthAction.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.TreeStructs; 7 | 8 | public class TreeResourceAuthAction { 9 | /** 10 | * 树结构节点列表 11 | */ 12 | @JsonProperty("nodeAuthActionList") 13 | private List nodeAuthActionList; 14 | 15 | public List getNodeAuthActionList() { 16 | return nodeAuthActionList; 17 | } 18 | public void setNodeAuthActionList(List nodeAuthActionList) { 19 | this.nodeAuthActionList = nodeAuthActionList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/CreateGroupTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateGroupReqDto{ 20 | Description: "description_6051", 21 | Name: "name_5994", 22 | Code: "code_1238", 23 | } 24 | response := client.CreateGroup(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserAccessibleAppsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserAccessibleAppsDto{ 20 | UserId: "userId_6893", 21 | UserIdType: "userIdType_8125", 22 | } 23 | response := client.GetUserAccessibleApps(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserAuthorizedAppsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserAuthorizedAppsDto{ 20 | UserId: "userId_8377", 21 | UserIdType: "userIdType_4913", 22 | } 23 | response := client.GetUserAuthorizedApps(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/CreateRoleTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.CreateRoleDto{ 20 | Code: "code_9045", 21 | Namespace: "namespace_3497", 22 | Description: "description_4139", 23 | } 24 | response := client.CreateRole(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/SetUserDepartmentsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.SetUserDepartmentsDto{ 20 | Departments: nil, 21 | UserId: "userId_5883", 22 | Options: nil, 23 | } 24 | response := client.SetUserDepartments(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserLoggedinIdentitiesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserLoggedInIdentitiesDto{ 20 | UserId: "userId_2447", 21 | UserIdType: "userIdType_2827", 22 | } 23 | response := client.GetUserLoggedinIdentities(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/ListRolesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListRolesDto{ 20 | Keywords: "keywords_6550", 21 | Namespace: "namespace_3937", 22 | Page: 0, 23 | Limit: 0, 24 | } 25 | response := client.ListRoles(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/ChangeAssociationStateTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.AssociationExtIdpDto{ 20 | Association: false, 21 | Id: "id_5612", 22 | TenantId: "tenantId_212", 23 | } 24 | response := client.ChangeAssociationState(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/GetExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetExtIdpDto{ 20 | Id: "id_4241", 21 | TenantId: "tenantId_9898", 22 | AppId: "appId_1548", 23 | Type: "type_8357", 24 | } 25 | response := client.GetExtIdp(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/GetOrganizationsBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetOrganizationBatchDto{ 20 | OrganizationCodeList: "organizationCodeList_5496", 21 | WithCustomData: false, 22 | } 23 | response := client.GetOrganizationsBatch(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserRolesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserRolesDto{ 20 | UserId: "userId_7515", 21 | UserIdType: "userIdType_1594", 22 | Namespace: "namespace_8201", 23 | } 24 | response := client.GetUserRoles(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/ListOrganizationsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListOrganizationsDto{ 20 | Page: 0, 21 | Limit: 0, 22 | FetchAll: false, 23 | WithCustomData: false, 24 | } 25 | response := client.ListOrganizations(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreatePermissionNamespacesBatchDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CreatePermissionNamespacesBatchItemDto; 7 | 8 | public class CreatePermissionNamespacesBatchDto { 9 | /** 10 | * 权限空间列表 11 | */ 12 | @JsonProperty("list") 13 | private List list; 14 | 15 | public List getList() { 16 | return list; 17 | } 18 | public void setList(List list) { 19 | this.list = list; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListResourceTargetsDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.ListResourceTargetsDtoResp; 7 | 8 | public class ListResourceTargetsDataDto { 9 | /** 10 | * 用户授权列表 11 | */ 12 | @JsonProperty("authUserList") 13 | private List authUserList; 14 | 15 | public List getAuthUserList() { 16 | return authUserList; 17 | } 18 | public void setAuthUserList(List authUserList) { 19 | this.authUserList = authUserList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckPermissionDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CheckPermissionsRespDto; 7 | 8 | public class CheckPermissionDataDto { 9 | /** 10 | * 检查结果列表 11 | */ 12 | @JsonProperty("checkResultList") 13 | private List checkResultList; 14 | 15 | public List getCheckResultList() { 16 | return checkResultList; 17 | } 18 | public void setCheckResultList(List checkResultList) { 19 | this.checkResultList = checkResultList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/test/go/test/ResetUserPrincipalAuthenticationInfoTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ResetUserPrincipalAuthenticationInfoDto{ 20 | UserId: "userId_2129", 21 | Options: nil, 22 | } 23 | response := client.ResetUserPrincipalAuthenticationInfo(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetFastpassClientAppsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetFastpassClientAppsDto { 8 | @JsonProperty("qrcodeId") 9 | private String qrcodeId; 10 | @JsonProperty("appId") 11 | private String appId; 12 | 13 | public String getQrcodeId() { 14 | return qrcodeId; 15 | } 16 | public void setQrcodeId(String qrcodeId) { 17 | this.qrcodeId = qrcodeId; 18 | } 19 | 20 | public String getAppId() { 21 | return appId; 22 | } 23 | public void setAppId(String appId) { 24 | this.appId = appId; 25 | } 26 | 27 | 28 | 29 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/SendUserResetPasswordEmailLinkBatchResultRespDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | public class SendUserResetPasswordEmailLinkBatchResultRespDto { 6 | @JsonProperty("userId") 7 | private String userId; 8 | @JsonProperty("success") 9 | private boolean success; 10 | 11 | public String getUserId() { 12 | return userId; 13 | } 14 | public void setUserId(String userId) { 15 | this.userId = userId; 16 | } 17 | public boolean getSuccess() { 18 | return success; 19 | } 20 | public void setSuccess(boolean success) { 21 | this.success = success; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/test/go/test/ListRoleDepartmentsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListRoleDepartmentsDto{ 20 | Code: "code_6936", 21 | Namespace: "namespace_6096", 22 | Page: 0, 23 | Limit: 0, 24 | } 25 | response := client.ListRoleDepartments(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UploadDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UploadDataDto { 8 | /** 9 | * key 10 | */ 11 | @JsonProperty("key") 12 | private String key; 13 | /** 14 | * url 15 | */ 16 | @JsonProperty("url") 17 | private String url; 18 | 19 | public String getKey() { 20 | return key; 21 | } 22 | public void setKey(String key) { 23 | this.key = key; 24 | } 25 | 26 | public String getUrl() { 27 | return url; 28 | } 29 | public void setUrl(String url) { 30 | this.url = url; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/test/go/test/GetUserPrincipalAuthenticationInfoTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserPrincipalAuthenticationInfoDto{ 20 | UserId: "userId_2419", 21 | UserIdType: "userIdType_5427", 22 | } 23 | response := client.GetUserPrincipalAuthenticationInfo(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/test/go/test/SearchOrganizationsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.SearchOrganizationsDto{ 20 | Keywords: "keywords_5621", 21 | Page: 0, 22 | Limit: 0, 23 | WithCustomData: false, 24 | } 25 | response := client.SearchOrganizations(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateApplicationPermissionStrategyTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateApplicationPermissionStrategyDataDto{ 20 | PermissionStrategy: , 21 | AppId: "appId_5604", 22 | } 23 | response := client.UpdateApplicationPermissionStrategy(&request) 24 | fmt.Println(response) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GeoIpLocation.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GeoIpLocation { 8 | /** 9 | * 经度 10 | */ 11 | @JsonProperty("lon") 12 | private Integer lon; 13 | /** 14 | * 纬度 15 | */ 16 | @JsonProperty("lat") 17 | private Integer lat; 18 | 19 | public Integer getLon() { 20 | return lon; 21 | } 22 | public void setLon(Integer lon) { 23 | this.lon = lon; 24 | } 25 | 26 | public Integer getLat() { 27 | return lat; 28 | } 29 | public void setLat(Integer lat) { 30 | this.lat = lat; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/test/go/test/SearchDepartmentsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.SearchDepartmentsReqDto{ 20 | Keywords: "keywords_9825", 21 | OrganizationCode: "organizationCode_5156", 22 | WithCustomData: false, 23 | } 24 | response := client.SearchDepartments(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateGroupTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateGroupReqDto{ 20 | Description: "description_8356", 21 | Name: "name_3417", 22 | Code: "code_6431", 23 | NewCode: "newCode_2599", 24 | } 25 | response := client.UpdateGroup(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateRoleTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateRoleDto{ 20 | NewCode: "newCode_751", 21 | Code: "code_2413", 22 | Namespace: "namespace_5612", 23 | Description: "description_4098", 24 | } 25 | response := client.UpdateRole(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/java/resources/go_template2.ftl: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.${firstParameter.className?cap_first}{ 20 | <#list firstParameter.properties as p> 21 | ${p.name?cap_first}: ${p.value}, 22 | 23 | } 24 | response := client.${methodName?cap_first}(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetFastpassQRCodeRelationAppsDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.FastpassQRCodeRelationAppDto; 7 | 8 | public class GetFastpassQRCodeRelationAppsDto { 9 | /** 10 | * 关联的客户端应用信息 11 | */ 12 | @JsonProperty("relationApps") 13 | private List relationApps; 14 | 15 | public List getRelationApps() { 16 | return relationApps; 17 | } 18 | public void setRelationApps(List relationApps) { 19 | this.relationApps = relationApps; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/model/AuthingClientOptions.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.model; 2 | 3 | import java.util.Map; 4 | 5 | /** 6 | * AuthingClientOptions 7 | * 8 | * @author chho 9 | */ 10 | public abstract class AuthingClientOptions { 11 | 12 | /** 13 | * SDK 版本 14 | */ 15 | public static final String SDK_VERSION = "1.0.0"; 16 | 17 | /** 18 | * 请求来源 19 | */ 20 | public static final String REQUEST_FROM = "java-sdk"; 21 | 22 | /** 23 | * 调用 24 | * 25 | * @param url 地址 26 | * @param method 方法 27 | * @param body 请求内容 28 | * @return 响应 29 | */ 30 | public abstract String doRequest(String url, String method, Map headers, Object body); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/util/signature/ISignatureComposer.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.util.signature; 2 | 3 | import java.util.Map; 4 | 5 | public interface ISignatureComposer { 6 | /** 7 | * 生成签名 8 | * @param method 9 | * @param uri 10 | * @param headers 11 | * @param queries 12 | * @return 13 | */ 14 | String composeStringToSign(String method, String uri, Map headers, Map queries); 15 | 16 | /** 17 | * 获取 Authorization 的值 18 | * @param accessKeyId 19 | * @param accessKeySecret 20 | * @param stringToSign 21 | * @return 22 | */ 23 | String getAuthorization(String accessKeyId, String accessKeySecret, String stringToSign); 24 | } 25 | -------------------------------------------------------------------------------- /src/test/go/test/DeleteDepartmentTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.DeleteDepartmentReqDto{ 20 | DepartmentId: "departmentId_3611", 21 | OrganizationCode: "organizationCode_3458", 22 | DepartmentIdType: , 23 | } 24 | response := client.DeleteDepartment(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/ExtIdpConnStateByAppsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ExtIdpConnAppsDto{ 20 | Id: "id_4455", 21 | TenantId: "tenantId_8254", 22 | AppId: "appId_2691", 23 | Type: "type_8117", 24 | } 25 | response := client.ExtIdpConnStateByApps(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/IsUserExistsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.IsUserExistsReqDto{ 20 | Username: "username_3890", 21 | Email: "email_4944", 22 | Phone: "phone_7483", 23 | ExternalId: "externalId_2092", 24 | } 25 | response := client.IsUserExists(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/test/go/test/GetGroupAuthorizedResourcesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetGroupAuthorizedResourcesDto{ 20 | Code: "code_7938", 21 | Namespace: "namespace_0", 22 | ResourceType: "resourceType_8192", 23 | } 24 | response := client.GetGroupAuthorizedResources(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/test/go/test/GetRoleAuthorizedResourcesTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetRoleAuthorizedResourcesDto{ 20 | Code: "code_8672", 21 | Namespace: "namespace_4739", 22 | ResourceType: "resourceType_6300", 23 | } 24 | response := client.GetRoleAuthorizedResources(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DropDownItemDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DropDownItemDto { 8 | /** 9 | * 选项 id 10 | */ 11 | @JsonProperty("key") 12 | private String key; 13 | /** 14 | * 选项名称 15 | */ 16 | @JsonProperty("label") 17 | private String label; 18 | 19 | public String getKey() { 20 | return key; 21 | } 22 | public void setKey(String key) { 23 | this.key = key; 24 | } 25 | 26 | public String getLabel() { 27 | return label; 28 | } 29 | public void setLabel(String label) { 30 | this.label = label; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CheckResourcePermissionDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.CheckResourcePermissionRespDto; 7 | 8 | public class CheckResourcePermissionDataDto { 9 | /** 10 | * 检查结果列表 11 | */ 12 | @JsonProperty("checkResultList") 13 | private List checkResultList; 14 | 15 | public List getCheckResultList() { 16 | return checkResultList; 17 | } 18 | public void setCheckResultList(List checkResultList) { 19 | this.checkResultList = checkResultList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserAuthResourceListDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.UserAuthResourceListDto; 7 | 8 | public class GetUserAuthResourceListDataDto { 9 | /** 10 | * 用户权限列表 11 | */ 12 | @JsonProperty("userPermissionList") 13 | private List userPermissionList; 14 | 15 | public List getUserPermissionList() { 16 | return userPermissionList; 17 | } 18 | public void setUserPermissionList(List userPermissionList) { 19 | this.userPermissionList = userPermissionList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserResourcePermissionListDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.GetUserResourcePermissionList; 7 | 8 | public class GetUserResourcePermissionListDataDto { 9 | /** 10 | * 权限列表 11 | */ 12 | @JsonProperty("permissionList") 13 | private List permissionList; 14 | 15 | public List getPermissionList() { 16 | return permissionList; 17 | } 18 | public void setPermissionList(List permissionList) { 19 | this.permissionList = permissionList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/authentication/ValidateTokenParams.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto.authentication; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | public class ValidateTokenParams { 6 | 7 | @JsonProperty("accessToken") 8 | private String accessToken; 9 | 10 | @JsonProperty("idToken") 11 | private String idToken; 12 | 13 | public String getAccessToken() { 14 | return accessToken; 15 | } 16 | 17 | public void setAccessToken(String accessToken) { 18 | this.accessToken = accessToken; 19 | } 20 | 21 | public String getIdToken() { 22 | return idToken; 23 | } 24 | 25 | public void setIdToken(String idToken) { 26 | this.idToken = idToken; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/test/go/test/GetUserTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserDto{ 20 | UserId: "userId_8183", 21 | UserIdType: "userIdType_100", 22 | WithCustomData: false, 23 | WithIdentities: false, 24 | WithDepartmentIds: false, 25 | } 26 | response := client.GetUser(&request) 27 | fmt.Println(response) 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/test/go/test/UpdateExtIdpConnTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.UpdateExtIdpConnDto{ 20 | Fields: nil, 21 | DisplayName: "displayName_8873", 22 | Id: "id_2409", 23 | Logo: "logo_5393", 24 | LoginOnly: false, 25 | } 26 | response := client.UpdateExtIdpConn(&request) 27 | fmt.Println(response) 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/test/go/test/ChangeConnStateTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.EnableExtIdpConnDto{ 20 | AppIds: "appIds_5057", 21 | AppId: "appId_3342", 22 | Enabled: false, 23 | Id: "id_2862", 24 | TenantId: "tenantId_5342", 25 | } 26 | response := client.ChangeConnState(&request) 27 | fmt.Println(response) 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/BindByRegiserInputApi.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class BindByRegiserInputApi { 8 | /** 9 | * 中间态键 10 | */ 11 | @JsonProperty("key") 12 | private String key; 13 | /** 14 | * 操作编码 15 | */ 16 | @JsonProperty("action") 17 | private String action; 18 | 19 | public String getKey() { 20 | return key; 21 | } 22 | public void setKey(String key) { 23 | this.key = key; 24 | } 25 | 26 | public String getAction() { 27 | return action; 28 | } 29 | public void setAction(String action) { 30 | this.action = action; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CellDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class CellDto { 8 | /** 9 | * 字段 id 10 | */ 11 | @JsonProperty("fieldId") 12 | private String fieldId; 13 | /** 14 | * 数据内容 15 | */ 16 | @JsonProperty("value") 17 | private Object value; 18 | 19 | public String getFieldId() { 20 | return fieldId; 21 | } 22 | public void setFieldId(String fieldId) { 23 | this.fieldId = fieldId; 24 | } 25 | 26 | public Object getValue() { 27 | return value; 28 | } 29 | public void setValue(Object value) { 30 | this.value = value; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteExtIdpDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteExtIdpDto { 8 | /** 9 | * 身份源 ID 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | /** 14 | * 租户 ID 15 | */ 16 | @JsonProperty("tenantId") 17 | private String tenantId; 18 | 19 | public String getId() { 20 | return id; 21 | } 22 | public void setId(String id) { 23 | this.id = id; 24 | } 25 | 26 | public String getTenantId() { 27 | return tenantId; 28 | } 29 | public void setTenantId(String tenantId) { 30 | this.tenantId = tenantId; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListFieldDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ListFieldDto { 8 | /** 9 | * 功能 id 10 | */ 11 | @JsonProperty("modelId") 12 | private String modelId; 13 | /** 14 | * 请求来源 15 | */ 16 | @JsonProperty("from") 17 | private String from; 18 | 19 | public String getModelId() { 20 | return modelId; 21 | } 22 | public void setModelId(String modelId) { 23 | this.modelId = modelId; 24 | } 25 | 26 | public String getFrom() { 27 | return from; 28 | } 29 | public void setFrom(String from) { 30 | this.from = from; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/test/go/test/ListTenantExtIdpTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListTenantExtIdpDto{ 20 | TenantId: "tenantId_6024", 21 | AppId: "appId_5221", 22 | Type: "type_1026", 23 | Page: "page_3707", 24 | Limit: "limit_7452", 25 | } 26 | response := client.ListTenantExtIdp(&request) 27 | fmt.Println(response) 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportTenantHistoryDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ImportTenantHistoryDto { 8 | /** 9 | * 页码 10 | */ 11 | @JsonProperty("page") 12 | private String page; 13 | /** 14 | * 每页获取的数据量 15 | */ 16 | @JsonProperty("limit") 17 | private String limit; 18 | 19 | public String getPage() { 20 | return page; 21 | } 22 | public void setPage(String page) { 23 | this.page = page; 24 | } 25 | 26 | public String getLimit() { 27 | return limit; 28 | } 29 | public void setLimit(String limit) { 30 | this.limit = limit; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ListDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ListDto { 8 | /** 9 | * 当前页数,从 1 开始 10 | */ 11 | @JsonProperty("page") 12 | private Integer page; 13 | /** 14 | * 每页数目,最大不能超过 50,默认为 10 15 | */ 16 | @JsonProperty("limit") 17 | private Integer limit; 18 | 19 | public Integer getPage() { 20 | return page; 21 | } 22 | public void setPage(Integer page) { 23 | this.page = page; 24 | } 25 | 26 | public Integer getLimit() { 27 | return limit; 28 | } 29 | public void setLimit(Integer limit) { 30 | this.limit = limit; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/PublicKeyCredentialRpEntityDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class PublicKeyCredentialRpEntityDto { 8 | /** 9 | * 信赖方 domain 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | /** 14 | * 信赖方名称 15 | */ 16 | @JsonProperty("name") 17 | private String name; 18 | 19 | public String getId() { 20 | return id; 21 | } 22 | public void setId(String id) { 23 | this.id = id; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/test/go/test/AddDepartmentMembersTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.AddDepartmentMembersReqDto{ 20 | UserIds: nil, 21 | OrganizationCode: "organizationCode_527", 22 | DepartmentId: "departmentId_9419", 23 | DepartmentIdType: , 24 | } 25 | response := client.AddDepartmentMembers(&request) 26 | fmt.Println(response) 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteExtIdpConnDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteExtIdpConnDto { 8 | /** 9 | * 身份源连接 ID 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | /** 14 | * 租户 ID 15 | */ 16 | @JsonProperty("tenantId") 17 | private String tenantId; 18 | 19 | public String getId() { 20 | return id; 21 | } 22 | public void setId(String id) { 23 | this.id = id; 24 | } 25 | 26 | public String getTenantId() { 27 | return tenantId; 28 | } 29 | public void setTenantId(String tenantId) { 30 | this.tenantId = tenantId; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/DeleteTerminalUserDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class DeleteTerminalUserDto { 8 | /** 9 | * 用户 ID 10 | */ 11 | @JsonProperty("userId") 12 | private String userId; 13 | /** 14 | * 数据行 id,创建设备时返回的 `id` 15 | */ 16 | @JsonProperty("id") 17 | private String id; 18 | 19 | public String getUserId() { 20 | return userId; 21 | } 22 | public void setUserId(String userId) { 23 | this.userId = userId; 24 | } 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | public void setId(String id) { 30 | this.id = id; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/FunctionModelFieldIdDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class FunctionModelFieldIdDto { 8 | /** 9 | * 功能 id 10 | */ 11 | @JsonProperty("modelId") 12 | private String modelId; 13 | /** 14 | * 功能字段 id 15 | */ 16 | @JsonProperty("id") 17 | private String id; 18 | 19 | public String getModelId() { 20 | return modelId; 21 | } 22 | public void setModelId(String modelId) { 23 | this.modelId = modelId; 24 | } 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | public void setId(String id) { 30 | this.id = id; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateAuthEnabledDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdateAuthEnabledDto { 8 | /** 9 | * 授权是否生效开关, 10 | */ 11 | @JsonProperty("enabled") 12 | private Boolean enabled; 13 | /** 14 | * 授权 ID 15 | */ 16 | @JsonProperty("id") 17 | private String id; 18 | 19 | public Boolean getEnabled() { 20 | return enabled; 21 | } 22 | public void setEnabled(Boolean enabled) { 23 | this.enabled = enabled; 24 | } 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | public void setId(String id) { 30 | this.id = id; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/UpdateTerminalUserDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class UpdateTerminalUserDto { 8 | /** 9 | * 数据行 id,创建设备时返回的 `id` 10 | */ 11 | @JsonProperty("id") 12 | private String id; 13 | /** 14 | * 用户 ID 15 | */ 16 | @JsonProperty("userId") 17 | private String userId; 18 | 19 | public String getId() { 20 | return id; 21 | } 22 | public void setId(String id) { 23 | this.id = id; 24 | } 25 | 26 | public String getUserId() { 27 | return userId; 28 | } 29 | public void setUserId(String userId) { 30 | this.userId = userId; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/errorEmailMsg.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class errorEmailMsg { 8 | /** 9 | * 邮箱地址 10 | */ 11 | @JsonProperty("email") 12 | private String email; 13 | /** 14 | * 错误信息描述 15 | */ 16 | @JsonProperty("message") 17 | private String message; 18 | 19 | public String getEmail() { 20 | return email; 21 | } 22 | public void setEmail(String email) { 23 | this.email = email; 24 | } 25 | 26 | public String getMessage() { 27 | return message; 28 | } 29 | public void setMessage(String message) { 30 | this.message = message; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/test/go/test/GetUserBatchTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.GetUserBatchDto{ 20 | UserIds: "userIds_6847", 21 | UserIdType: "userIdType_1994", 22 | WithCustomData: false, 23 | WithIdentities: false, 24 | WithDepartmentIds: false, 25 | } 26 | response := client.GetUserBatch(&request) 27 | fmt.Println(response) 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/test/go/test/ListDepartmentMemberIdsTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "authing-go-sdk/client" 5 | "authing-go-sdk/dto" 6 | "fmt" 7 | ) 8 | 9 | func main() { 10 | options := client.ManagementClientOptions{ 11 | AccessKeyId: "AUTHING_USERPOOL_ID", 12 | AccessKeySecret: "AUTHING_USERPOOL_SECRET", 13 | } 14 | var err error 15 | client, err := client.NewClient(&options) 16 | if err != nil { 17 | panic(err) 18 | } 19 | request := dto.ListDepartmentMemberIdsDto{ 20 | OrganizationCode: "organizationCode_1570", 21 | DepartmentId: "departmentId_8929", 22 | DepartmentIdType: "departmentIdType_7044", 23 | } 24 | response := client.ListDepartmentMemberIds(&request) 25 | fmt.Println(response) 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/CreateDenfDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | /** 4 | * 创建数据资源扩展字段 5 | */ 6 | public class CreateDenfDto extends Dnef { 7 | 8 | /** 9 | * 数据资源 code 10 | */ 11 | private String resourceCode; 12 | 13 | /** 14 | * 权限空间 code 15 | */ 16 | private String namespaceCode; 17 | 18 | public String getResourceCode() { 19 | return resourceCode; 20 | } 21 | 22 | public void setResourceCode(String resourceCode) { 23 | this.resourceCode = resourceCode; 24 | } 25 | 26 | public String getNamespaceCode() { 27 | return namespaceCode; 28 | } 29 | 30 | public void setNamespaceCode(String namespaceCode) { 31 | this.namespaceCode = namespaceCode; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/Expand.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class Expand { 8 | /** 9 | * 关联的字段 key 10 | */ 11 | @JsonProperty("field") 12 | private String field; 13 | /** 14 | * 展开哪些关联字段 15 | */ 16 | @JsonProperty("select") 17 | private List select; 18 | 19 | public String getField() { 20 | return field; 21 | } 22 | public void setField(String field) { 23 | this.field = field; 24 | } 25 | 26 | public List getSelect() { 27 | return select; 28 | } 29 | public void setSelect(List select) { 30 | this.select = select; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetOrdersDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class GetOrdersDto { 8 | /** 9 | * 当前页数,从 1 开始 10 | */ 11 | @JsonProperty("page") 12 | private Integer page; 13 | /** 14 | * 每页数目,最大不能超过 50,默认为 10 15 | */ 16 | @JsonProperty("limit") 17 | private Integer limit; 18 | 19 | public Integer getPage() { 20 | return page; 21 | } 22 | public void setPage(Integer page) { 23 | this.page = page; 24 | } 25 | 26 | public Integer getLimit() { 27 | return limit; 28 | } 29 | public void setLimit(Integer limit) { 30 | this.limit = limit; 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/GetUserAuthResourcePermissionListDataDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | import cn.authing.sdk.java.dto.GetUserAuthResourcePermissionList; 7 | 8 | public class GetUserAuthResourcePermissionListDataDto { 9 | /** 10 | * 权限列表 11 | */ 12 | @JsonProperty("permissionList") 13 | private List permissionList; 14 | 15 | public List getPermissionList() { 16 | return permissionList; 17 | } 18 | public void setPermissionList(List permissionList) { 19 | this.permissionList = permissionList; 20 | } 21 | 22 | 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/cn/authing/sdk/java/dto/ImportModelDto.java: -------------------------------------------------------------------------------- 1 | package cn.authing.sdk.java.dto; 2 | 3 | import java.util.List; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | 6 | 7 | public class ImportModelDto { 8 | /** 9 | * 导入的 excel 文件地址 10 | */ 11 | @JsonProperty("file") 12 | private String file; 13 | /** 14 | * 功能 id 15 | */ 16 | @JsonProperty("modelId") 17 | private String modelId; 18 | 19 | public String getFile() { 20 | return file; 21 | } 22 | public void setFile(String file) { 23 | this.file = file; 24 | } 25 | 26 | public String getModelId() { 27 | return modelId; 28 | } 29 | public void setModelId(String modelId) { 30 | this.modelId = modelId; 31 | } 32 | 33 | 34 | 35 | } --------------------------------------------------------------------------------