-
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.
- Loading branch information
luojielin
committed
Aug 4, 2022
1 parent
2aac359
commit 56db9b2
Showing
67 changed files
with
585 additions
and
273 deletions.
There are no files selected for viewing
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,4 @@ | ||
package dto | ||
|
||
type AccessTokenDto struct { | ||
AccessToken string `json:"access_token"` | ||
ExpiresIn int `json:"expires_in"` | ||
} |
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 AccessTokenResDto struct { | ||
AccessToken string `json:"access_token"` | ||
ExpiresIn int `json:"expires_in"` | ||
} |
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 CreateDepartmentReqDto struct { | ||
OrganizationCode string `json:"organizationCode"` | ||
ParentDepartmentId string `json:"parentDepartmentId"` | ||
Name string `json:"name"` | ||
OpenDepartmentId string `json:"openDepartmentId,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
Code string `json:"code,omitempty"` | ||
I18n I18nDto `json:"i18n,omitempty"` | ||
DepartmentIdType string `json:"departmentIdType,omitempty"` | ||
ParentDepartmentId string `json:"parentDepartmentId"` | ||
Name string `json:"name"` | ||
OrganizationCode string `json:"organizationCode"` | ||
OpenDepartmentId string `json:"openDepartmentId,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
Code string `json:"code,omitempty"` | ||
IsVirtualNode bool `json:"isVirtualNode,omitempty"` | ||
I18n I18nDto `json:"i18n,omitempty"` | ||
CustomData interface{} `json:"customData,omitempty"` | ||
DepartmentIdType string `json:"departmentIdType,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,9 @@ | ||
package dto | ||
|
||
type CreateIdentityDto struct { | ||
ExtIdpId string `json:"extIdpId"` | ||
Provider string `json:"provider"` | ||
Type string `json:"type"` | ||
UserIdInIdp string `json:"userIdInIdp"` | ||
ExtIdpId string `json:"extIdpId"` | ||
Provider string `json:"provider"` | ||
Type string `json:"type"` | ||
UserIdInIdp string `json:"userIdInIdp"` | ||
OriginConnIds []string `json:"originConnIds"` | ||
} |
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 CreateUserOptionsDto struct { | ||
KeepPassword bool `json:"keepPassword,omitempty"` | ||
ResetPasswordOnFirstLogin bool `json:"resetPasswordOnFirstLogin,omitempty"` | ||
DepartmentIdType string `json:"departmentIdType,omitempty"` | ||
KeepPassword bool `json:"keepPassword,omitempty"` | ||
AutoGeneratePassword bool `json:"autoGeneratePassword,omitempty"` | ||
ResetPasswordOnFirstLogin bool `json:"resetPasswordOnFirstLogin,omitempty"` | ||
DepartmentIdType string `json:"departmentIdType,omitempty"` | ||
SendNotification SendCreateAccountNotificationDto `json:"sendNotification,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,7 +1,7 @@ | ||
package dto | ||
|
||
type DeleteDepartmentReqDto struct { | ||
OrganizationCode string `json:"organizationCode"` | ||
DepartmentId string `json:"departmentId"` | ||
OrganizationCode string `json:"organizationCode"` | ||
DepartmentIdType string `json:"departmentIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type DeleteUsersBatchDto struct { | ||
UserIds []string `json:"userIds"` | ||
UserIds []string `json:"userIds"` | ||
Options DeleteUsersBatchOptionsDto `json:"options,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,5 @@ | ||
package dto | ||
|
||
type DeleteUsersBatchOptionsDto struct { | ||
UserIdType string `json:"userIdType,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,14 +1,18 @@ | ||
package dto | ||
|
||
type DepartmentDto struct { | ||
DepartmentId string `json:"departmentId"` | ||
OpenDepartmentId string `json:"openDepartmentId,omitempty"` | ||
Name string `json:"name"` | ||
LeaderUserIds []string `json:"leaderUserIds,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
ParentDepartmentId string `json:"parentDepartmentId"` | ||
Code string `json:"code,omitempty"` | ||
MembersCount int `json:"membersCount"` | ||
HasChildren bool `json:"hasChildren"` | ||
I18n I18nDto `json:"i18n,omitempty"` | ||
OrganizationCode string `json:"organizationCode"` | ||
DepartmentId string `json:"departmentId"` | ||
CreatedAt string `json:"createdAt"` | ||
OpenDepartmentId string `json:"openDepartmentId,omitempty"` | ||
Name string `json:"name"` | ||
LeaderUserIds []string `json:"leaderUserIds,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
ParentDepartmentId string `json:"parentDepartmentId"` | ||
Code string `json:"code,omitempty"` | ||
MembersCount int `json:"membersCount"` | ||
HasChildren bool `json:"hasChildren"` | ||
IsVirtualNode bool `json:"isVirtualNode,omitempty"` | ||
I18n I18nDto `json:"i18n,omitempty"` | ||
CustomData interface{} `json:"customData,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
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
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,8 @@ | ||
package dto | ||
|
||
type GetManagementTokenRespDto struct { | ||
StatusCode int `json:"statusCode"` | ||
Message string `json:"message"` | ||
ApiCode int `json:"apiCode,omitempty"` | ||
Data AccessTokenDto `json:"data"` | ||
StatusCode int `json:"statusCode"` | ||
Message string `json:"message"` | ||
ApiCode int `json:"apiCode,omitempty"` | ||
Data AccessTokenResDto `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
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,6 @@ | ||
package dto | ||
|
||
type GetUserAccessibleAppsDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserAuthorizedAppsDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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
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
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,11 @@ | ||
package dto | ||
|
||
type GetUserDepartmentsDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,omitempty"` | ||
Page int `json:"page,omitempty"` | ||
Limit int `json:"limit,omitempty"` | ||
WithCustomData bool `json:"withCustomData,omitempty"` | ||
SortBy string `json:"sortBy,omitempty"` | ||
OrderBy string `json:"orderBy,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
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,6 @@ | ||
package dto | ||
|
||
type GetUserGroupsDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserIdentitiesDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserLoggedInIdentitiesDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserLoggedinAppsDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,11 +1,12 @@ | ||
package dto | ||
|
||
type GetUserLoginHistoryDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
AppId string `json:"appId,omitempty"` | ||
ClientIp string `json:"clientIp,omitempty"` | ||
Start int `json:"start,omitempty"` | ||
End int `json:"end,omitempty"` | ||
Page int `json:"page,omitempty"` | ||
Limit int `json:"limit,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,omitempty"` | ||
AppId string `json:"appId,omitempty"` | ||
ClientIp string `json:"clientIp,omitempty"` | ||
Start int `json:"start,omitempty"` | ||
End int `json:"end,omitempty"` | ||
Page int `json:"page,omitempty"` | ||
Limit int `json:"limit,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserMfaInfoDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,5 +1,6 @@ | ||
package dto | ||
|
||
type GetUserPrincipalAuthenticationInfoDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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,6 +1,7 @@ | ||
package dto | ||
|
||
type GetUserRolesDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
UserId string `json:"userId,omitempty"` | ||
UserIdType string `json:"userIdType,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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dto | ||
|
||
type HasAnyRoleOptionsDto struct { | ||
UserIdType string `json:"userIdType,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,6 +1,7 @@ | ||
package dto | ||
|
||
type HasAnyRoleReqDto struct { | ||
Roles []HasRoleRolesDto `json:"roles"` | ||
UserId string `json:"userId"` | ||
Roles []HasRoleRolesDto `json:"roles"` | ||
UserId string `json:"userId"` | ||
Options HasAnyRoleOptionsDto `json:"options,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,5 +1,5 @@ | ||
package dto | ||
|
||
type I18nDto struct { | ||
Name string `json:"name"` | ||
//Name LangObject `json:"name"` | ||
} |
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,10 @@ | ||
package dto | ||
|
||
type IdentityDto struct { | ||
IdentityId string `json:"identityId"` | ||
ExtIdpId string `json:"extIdpId"` | ||
Provider string `json:"provider"` | ||
Type string `json:"type"` | ||
UserIdInIdp string `json:"userIdInIdp"` | ||
IdentityId string `json:"identityId"` | ||
ExtIdpId string `json:"extIdpId"` | ||
Provider string `json:"provider"` | ||
Type string `json:"type"` | ||
UserIdInIdp string `json:"userIdInIdp"` | ||
OriginConnIds []string `json:"originConnIds"` | ||
} |
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,5 @@ | ||
package dto | ||
|
||
type IsActionAllowedDataDto struct { | ||
Allowed bool `json:"allowed"` | ||
} |
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 IsActionAllowedDto struct { | ||
Action string `json:"action"` | ||
Resource string `json:"resource"` | ||
UserId string `json:"userId"` | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package dto | ||
|
||
type IsActionAllowedRespDtp struct { | ||
StatusCode int `json:"statusCode"` | ||
Message string `json:"message"` | ||
ApiCode int `json:"apiCode,omitempty"` | ||
Data IsActionAllowedDataDto `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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dto | ||
|
||
type IsUserInDepartmentDataDto struct { | ||
InDepartment bool `json:"inDepartment"` | ||
} |
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 IsUserInDepartmentDto struct { | ||
UserId string `json:"userId,omitempty"` | ||
OrganizationCode string `json:"organizationCode,omitempty"` | ||
DepartmentId string `json:"departmentId,omitempty"` | ||
DepartmentIdType string `json:"departmentIdType,omitempty"` | ||
IncludeChildrenDepartments bool `json:"includeChildrenDepartments,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 IsUserInDepartmentRespDto struct { | ||
StatusCode int `json:"statusCode"` | ||
Message string `json:"message"` | ||
ApiCode int `json:"apiCode,omitempty"` | ||
Data IsUserInDepartmentDataDto `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,7 @@ | ||
package dto | ||
|
||
type KickUsersDto struct { | ||
AppIds []string `json:"appIds"` | ||
UserId string `json:"userId"` | ||
AppIds []string `json:"appIds"` | ||
UserId string `json:"userId"` | ||
Options KickUsersOptionsDto `json:"options,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,5 @@ | ||
package dto | ||
|
||
type KickUsersOptionsDto struct { | ||
UserIdType string `json:"userIdType,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,6 @@ | ||
package dto | ||
|
||
//type LangObject struct{ | ||
// 'zh-CN' LangUnit `json:"'zh-CN'"` | ||
// 'en-US' LangUnit `json:"'en-US'"` | ||
//} |
Oops, something went wrong.