Skip to content

Commit

Permalink
Merge pull request #17 from Authing/feat/new-api
Browse files Browse the repository at this point in the history
feat: 重新生成新的 API
  • Loading branch information
liaochangjiang committed Oct 23, 2023
2 parents 34bdbda + 1bbde40 commit 306915a
Show file tree
Hide file tree
Showing 566 changed files with 13,773 additions and 4,581 deletions.
1,662 changes: 1,134 additions & 528 deletions authentication/authentication_client.go

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions dto/AddDepartmentMembersReqDto.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package dto

type AddDepartmentMembersReqDto struct {
UserIds []string `json:"userIds"`
OrganizationCode string `json:"organizationCode"`
DepartmentId string `json:"departmentId"`
DepartmentIdType string `json:"departmentIdType,omitempty"`
TenantId string `json:"tenantId,omitempty"`

type AddDepartmentMembersReqDto struct{
UserIds []string `json:"userIds"`
OrganizationCode string `json:"organizationCode"`
DepartmentId string `json:"departmentId"`
DepartmentIdType string `json:"departmentIdType,omitempty"`
TenantId string `json:"tenantId,omitempty"`
}

12 changes: 12 additions & 0 deletions dto/AddTenantDepartmentMembersReqDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package dto


type AddTenantDepartmentMembersReqDto struct{
OrganizationCode string `json:"organizationCode"`
DepartmentId string `json:"departmentId"`
DepartmentIdType string `json:"departmentIdType,omitempty"`
LinkUserIds []string `json:"linkUserIds,omitempty"`
MemberIds []string `json:"memberIds,omitempty"`
TenantId string `json:"tenantId,omitempty"`
}

8 changes: 8 additions & 0 deletions dto/AddWhitelistDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type AddWhitelistDto struct{
Type string `json:"type"`
List []string `json:"list,omitempty"`
}

7 changes: 7 additions & 0 deletions dto/AllOperateDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package dto


type AllOperateDto struct{
ModelId string `json:"modelId,omitempty"`
}

8 changes: 8 additions & 0 deletions dto/AppQRCodeLoginDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type AppQRCodeLoginDto struct{
Action string `json:"action"`
QrcodeId string `json:"qrcodeId"`
}

9 changes: 9 additions & 0 deletions dto/ApplicationMfaDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dto


type ApplicationMfaDto struct{
MfaPolicy string `json:"mfaPolicy"`
Status int `json:"status"`
Sort int `json:"sort"`
}

6 changes: 6 additions & 0 deletions dto/ApplicationTabMethodsSortConfigDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package dto


type ApplicationTabMethodsSortConfigDto struct{
}

8 changes: 5 additions & 3 deletions dto/ArrResourceAuthAction.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package dto

type ArrResourceAuthAction struct {
Values []string `json:"values,omitempty"`
Actions []string `json:"actions,omitempty"`

type ArrResourceAuthAction struct{
Values []string `json:"values,omitempty"`
Actions []string `json:"actions,omitempty"`
}

14 changes: 8 additions & 6 deletions dto/AsaAccountSingleNullableRespDto.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package dto

type AsaAccountSingleNullableRespDto struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
ApiCode int `json:"apiCode,omitempty"`
RequestId string `json:"requestId,omitempty"`
Data AsaAccountDto `json:"data"`

type AsaAccountSingleNullableRespDto struct{
StatusCode int `json:"statusCode"`
Message string `json:"message"`
ApiCode int `json:"apiCode,omitempty"`
RequestId string `json:"requestId,omitempty"`
Data AsaAccountDto `json:"data"`
}

8 changes: 5 additions & 3 deletions dto/AssignRoleBatchDto.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package dto

type AssignRoleBatchDto struct {
Targets []TargetDto `json:"targets"`
Roles []RoleCodeDto `json:"roles"`

type AssignRoleBatchDto struct{
Targets []TargetDto `json:"targets"`
Roles []RoleCodeDto `json:"roles"`
}

14 changes: 8 additions & 6 deletions dto/AssignRoleDto.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package dto

type AssignRoleDto struct {
Targets []TargetDto `json:"targets"`
Code string `json:"code"`
EndTime int `json:"endTime,omitempty"`
EnableTime int `json:"enableTime,omitempty"`
Namespace string `json:"namespace,omitempty"`

type AssignRoleDto struct{
Targets []TargetDto `json:"targets"`
Code string `json:"code"`
EndTime int `json:"endTime,omitempty"`
EnableTime int `json:"enableTime,omitempty"`
Namespace string `json:"namespace,omitempty"`
}

12 changes: 7 additions & 5 deletions dto/AssociateTenantResourceDto.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package dto

type AssociateTenantResourceDto struct {
Code string `json:"code"`
Association bool `json:"association"`
AppId string `json:"appId"`
TenantId string `json:"tenantId,omitempty"`

type AssociateTenantResourceDto struct{
Code string `json:"code"`
Association bool `json:"association"`
AppId string `json:"appId"`
TenantId string `json:"tenantId,omitempty"`
}

20 changes: 11 additions & 9 deletions dto/AuthEnvParams.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package dto

type AuthEnvParams struct {
Ip string `json:"ip,omitempty"`
City string `json:"city,omitempty"`
Province string `json:"province,omitempty"`
Country string `json:"country,omitempty"`
DeviceType string `json:"deviceType,omitempty"`
SystemType string `json:"systemType,omitempty"`
BrowserType string `json:"browserType,omitempty"`
RequestDate string `json:"requestDate,omitempty"`

type AuthEnvParams struct{
Ip string `json:"ip,omitempty"`
City string `json:"city,omitempty"`
Province string `json:"province,omitempty"`
Country string `json:"country,omitempty"`
DeviceType string `json:"deviceType,omitempty"`
SystemType string `json:"systemType,omitempty"`
BrowserType string `json:"browserType,omitempty"`
RequestDate string `json:"requestDate,omitempty"`
}

10 changes: 10 additions & 0 deletions dto/AuthenticationCredentialDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package dto


type AuthenticationCredentialDto struct{
Id string `json:"id"`
RawId string `json:"rawId"`
Response AuthenticatorAssertionResponseDto `json:"response"`
Type string `json:"type"`
}

8 changes: 8 additions & 0 deletions dto/AuthenticationOptionsDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type AuthenticationOptionsDto struct{
AuthenticationOptions PublicKeyCredentialRequestOptionsDto `json:"authenticationOptions"`
Ticket string `json:"ticket"`
}

10 changes: 10 additions & 0 deletions dto/AuthenticatorAssertionResponseDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package dto


type AuthenticatorAssertionResponseDto struct{
AuthenticatorData string `json:"authenticatorData"`
ClientDataJSON string `json:"clientDataJSON"`
Signature string `json:"signature"`
UserHandle string `json:"userHandle"`
}

8 changes: 8 additions & 0 deletions dto/AuthenticatorAttestationResponseDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type AuthenticatorAttestationResponseDto struct{
AttestationObject string `json:"attestationObject"`
ClientDataJSON string `json:"clientDataJSON"`
}

8 changes: 5 additions & 3 deletions dto/AuthorizeApplicationAccessDto.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package dto

type AuthorizeApplicationAccessDto struct {
AppId string `json:"appId"`
List []ApplicationPermissionRecordItem `json:"list"`

type AuthorizeApplicationAccessDto struct{
AppId string `json:"appId"`
List []ApplicationPermissionRecordItem `json:"list"`
}

9 changes: 9 additions & 0 deletions dto/BindByAccountIdInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dto


type BindByAccountIdInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
AccountId string `json:"accountId"`
}

10 changes: 10 additions & 0 deletions dto/BindByAccountInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package dto


type BindByAccountInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
Password string `json:"password"`
Account string `json:"account"`
}

9 changes: 9 additions & 0 deletions dto/BindByAccountsInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dto


type BindByAccountsInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
Account string `json:"account"`
}

10 changes: 10 additions & 0 deletions dto/BindByEmailCodeInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package dto


type BindByEmailCodeInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
Code string `json:"code"`
Email string `json:"email"`
}

11 changes: 11 additions & 0 deletions dto/BindByPhoneCodeInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package dto


type BindByPhoneCodeInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
Code string `json:"code"`
Phone string `json:"phone"`
PhoneCountryCode string `json:"phoneCountryCode,omitempty"`
}

8 changes: 8 additions & 0 deletions dto/BindByRegiserInputApi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type BindByRegiserInputApi struct{
Key string `json:"key"`
Action string `json:"action"`
}

8 changes: 8 additions & 0 deletions dto/CellDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type CellDto struct{
FieldId string `json:"fieldId"`
Value interface{} `json:"value"`
}

10 changes: 6 additions & 4 deletions dto/ChangeExtIdpAssociationStateDto.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package dto

type ChangeExtIdpAssociationStateDto struct {
Id string `json:"id"`
Association bool `json:"association"`
TenantId string `json:"tenantId,omitempty"`

type ChangeExtIdpAssociationStateDto struct{
Id string `json:"id"`
Association bool `json:"association"`
TenantId string `json:"tenantId,omitempty"`
}

14 changes: 8 additions & 6 deletions dto/ChangeExtIdpConnStateDto.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package dto

type ChangeExtIdpConnStateDto struct {
Id string `json:"id"`
Enabled bool `json:"enabled"`
AppId string `json:"appId"`
TenantId string `json:"tenantId,omitempty"`
AppIds []string `json:"appIds,omitempty"`

type ChangeExtIdpConnStateDto struct{
Id string `json:"id"`
Enabled bool `json:"enabled"`
AppId string `json:"appId"`
TenantId string `json:"tenantId,omitempty"`
AppIds []string `json:"appIds,omitempty"`
}

8 changes: 8 additions & 0 deletions dto/ChangePushCodeStatusDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dto


type ChangePushCodeStatusDto struct{
Action string `json:"action"`
PushCodeId string `json:"pushCodeId"`
}

8 changes: 5 additions & 3 deletions dto/ChangeUserPoolTenantExtIdpConnDto.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package dto

type ChangeUserPoolTenantExtIdpConnDto struct {
Enabled bool `json:"enabled"`
ConnIds []string `json:"connIds"`

type ChangeUserPoolTenantExtIdpConnDto struct{
Enabled bool `json:"enabled"`
ConnIds []string `json:"connIds"`
}

6 changes: 6 additions & 0 deletions dto/CheckDeviceCredentialIdDto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package dto


type CheckDeviceCredentialIdDto struct{
}

6 changes: 4 additions & 2 deletions dto/CheckExternalUserPermissionDataDto.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package dto

type CheckExternalUserPermissionDataDto struct {
CheckResultList []CheckExternalUserPermissionsRespDto `json:"checkResultList"`

type CheckExternalUserPermissionDataDto struct{
CheckResultList []CheckExternalUserPermissionsRespDto `json:"checkResultList"`
}

16 changes: 9 additions & 7 deletions dto/CheckExternalUserPermissionDto.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package dto

type CheckExternalUserPermissionDto struct {
Resources []string `json:"resources"`
Action string `json:"action"`
ExternalId string `json:"externalId"`
NamespaceCode string `json:"namespaceCode"`
JudgeConditionEnabled bool `json:"judgeConditionEnabled,omitempty"`
AuthEnvParams AuthEnvParams `json:"authEnvParams,omitempty"`

type CheckExternalUserPermissionDto struct{
Resources []string `json:"resources"`
Action string `json:"action"`
ExternalId string `json:"externalId"`
NamespaceCode string `json:"namespaceCode"`
JudgeConditionEnabled bool `json:"judgeConditionEnabled,omitempty"`
AuthEnvParams AuthEnvParams `json:"authEnvParams,omitempty"`
}

Loading

0 comments on commit 306915a

Please sign in to comment.