Documentation ¶
Index ¶
- type PermissionCreateCmd
- type PermissionCreateResult
- type PermissionInfo
- type RoleCreateCmd
- type RoleCreateResult
- type RoleInfo
- type RolePermissionAssignmentCmd
- type RolePermissionAssignmentResult
- type SadminTokenCreateCmd
- type SadminTokenCreateResult
- type TenantCreateCmd
- type TenantCreateResult
- type TenantInfo
- type TenantInitCmd
- type TenantSecretKey
- type TenantTokenCreateCmd
- type TenantTokenCreateResult
- type UserAuthorizationCodeCmd
- type UserAuthorizationCodeResult
- type UserCreateCmd
- type UserCreateResult
- type UserInfo
- type UserRoleAssignmentCmd
- type UserRoleAssignmentResult
- type UserTokenByAuthcodeCmd
- type UserTokenByAuthcodeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionCreateCmd ¶
type PermissionCreateCmd struct {
Permissions []PermissionInfo `json:"permissions"`
}
type PermissionCreateResult ¶
type PermissionInfo ¶
type PermissionInfo struct { // 许可名称 PermissionName string `json:"permission_name"` // 资源编码 AuthCode string `json:"auth_code"` }
PermissionInfo 资源许可
type RoleCreateCmd ¶
type RoleCreateCmd struct {
Roles []RoleInfo `json:"roles"`
}
type RoleCreateResult ¶
type SadminTokenCreateCmd ¶
type SadminTokenCreateCmd struct { // 租户密钥 SecretKey string `json:"secret_key"` }
type SadminTokenCreateResult ¶
type TenantCreateCmd ¶
type TenantCreateCmd struct { // 批量新增参数 Tenants []TenantInfo `json:"tenants"` }
type TenantCreateResult ¶
type TenantCreateResult struct { // 批量响应 SecretKeys []TenantSecretKey `json:"secret_keys"` }
type TenantInfo ¶
type TenantInitCmd ¶
type TenantInitCmd struct {
TenantID string
}
type TenantSecretKey ¶
type TenantTokenCreateCmd ¶
type TenantTokenCreateResult ¶
type UserCreateCmd ¶
type UserCreateCmd struct {
Users []UserInfo `json:"users"`
}
type UserCreateResult ¶
type UserRoleAssignmentCmd ¶
type UserTokenByAuthcodeCmd ¶
type UserTokenByAuthcodeCmd struct { // 授权码 AuthorizationCode string `json:"authorization_code"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.