-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Authing/feat/new-api
feat: 重新生成新的 API
- Loading branch information
Showing
566 changed files
with
13,773 additions
and
4,581 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dto | ||
|
||
|
||
type AllOperateDto struct{ | ||
ModelId string `json:"modelId,omitempty"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package dto | ||
|
||
|
||
type ApplicationTabMethodsSortConfigDto struct{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package dto | ||
|
||
|
||
type CheckDeviceCredentialIdDto struct{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} | ||
|
Oops, something went wrong.