Skip to content

Commit f829abc

Browse files
authored
Merge pull request #9 from Authing/feat/data-permission-auth
feat:数据权限鉴权 API 文档更新和补充
2 parents cca784e + 8b5135c commit f829abc

File tree

68 files changed

+830
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+830
-506
lines changed

dto/AddDepartmentMembersReqDto.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package dto
22

3-
4-
type AddDepartmentMembersReqDto struct{
5-
UserIds []string `json:"userIds"`
6-
OrganizationCode string `json:"organizationCode"`
7-
DepartmentId string `json:"departmentId"`
8-
DepartmentIdType string `json:"departmentIdType,omitempty"`
3+
type AddDepartmentMembersReqDto struct {
4+
UserIds []string `json:"userIds"`
5+
OrganizationCode string `json:"organizationCode"`
6+
DepartmentId string `json:"departmentId"`
7+
DepartmentIdType string `json:"departmentIdType,omitempty"`
8+
TenantId string `json:"tenantId,omitempty"`
99
}
10-

dto/ArrResourceAuthAction.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package dto
2+
3+
type ArrResourceAuthAction struct {
4+
Values []string `json:"values,omitempty"`
5+
Actions []string `json:"actions,omitempty"`
6+
}

dto/AssociateTenantResourceDto.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package dto
22

3-
4-
type AssociateTenantResourceDto struct{
5-
AppId string `json:"appId"`
6-
Association bool `json:"association"`
7-
Code string `json:"code"`
8-
TenantId string `json:"tenantId,omitempty"`
3+
type AssociateTenantResourceDto struct {
4+
Code string `json:"code"`
5+
Association bool `json:"association"`
6+
AppId string `json:"appId"`
7+
TenantId string `json:"tenantId,omitempty"`
98
}
10-
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package dto
22

3-
4-
type AuthorizeApplicationAccessDto struct{
5-
List []ApplicationPermissionRecordItem `json:"list"`
6-
AppId string `json:"appId"`
3+
type AuthorizeApplicationAccessDto struct {
4+
AppId string `json:"appId"`
5+
List []ApplicationPermissionRecordItem `json:"list"`
76
}
8-
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package dto
22

3-
4-
type ChangeExtIdpAssociationStateDto struct{
5-
Association bool `json:"association"`
6-
Id string `json:"id"`
7-
TenantId string `json:"tenantId,omitempty"`
3+
type ChangeExtIdpAssociationStateDto struct {
4+
Id string `json:"id"`
5+
Association bool `json:"association"`
6+
TenantId string `json:"tenantId,omitempty"`
87
}
9-

dto/ChangeExtIdpConnStateDto.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package dto
22

3-
4-
type ChangeExtIdpConnStateDto struct{
5-
AppId string `json:"appId"`
6-
Enabled bool `json:"enabled"`
7-
Id string `json:"id"`
8-
TenantId string `json:"tenantId,omitempty"`
9-
AppIds []string `json:"appIds,omitempty"`
3+
type ChangeExtIdpConnStateDto struct {
4+
Id string `json:"id"`
5+
Enabled bool `json:"enabled"`
6+
AppId string `json:"appId"`
7+
TenantId string `json:"tenantId,omitempty"`
8+
AppIds []string `json:"appIds,omitempty"`
109
}
11-
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package dto
2+
3+
type ChangeUserPoolTenantExtIdpConnDto struct {
4+
Enabled bool `json:"enabled"`
5+
ConnIds []string `json:"connIds"`
6+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package dto
22

33
type CheckUserSameLevelPermissionDto struct {
4+
ResourceNodeCodes []string `json:"resourceNodeCodes"`
45
Resource string `json:"resource"`
56
Action string `json:"action"`
67
UserId string `json:"userId"`
78
NamespaceCode string `json:"namespaceCode"`
8-
ResourceNodeCodes []string `json:"resourceNodeCodes,omitempty"`
99
JudgeConditionEnabled bool `json:"judgeConditionEnabled,omitempty"`
1010
AuthEnvParams AuthEnvParams `json:"authEnvParams,omitempty"`
1111
}
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package dto
22

3-
4-
type CheckUserSameLevelPermissionRespDto struct{
5-
Action string `json:"action"`
6-
ResourceNodeCode string `json:"resourceNodeCode,omitempty"`
7-
Enabled bool `json:"enabled"`
3+
type CheckUserSameLevelPermissionRespDto struct {
4+
Action string `json:"action"`
5+
ResourceNodeCode string `json:"resourceNodeCode"`
6+
Enabled bool `json:"enabled"`
87
}
9-

dto/CreateAccessKeyDto.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dto
22

3-
4-
type CreateAccessKeyDto struct{
5-
UserId string `json:"userId"`
3+
type CreateAccessKeyDto struct {
4+
Type string `json:"type"`
5+
UserId string `json:"userId,omitempty"`
6+
TenantId string `json:"tenantId,omitempty"`
67
}
7-

0 commit comments

Comments
 (0)