identity

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package identity 提供身份管理和监护关系查询能力。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 身份服务客户端。

func NewClient

NewClient 创建身份服务客户端。

func (*Client) BatchGetChildren

func (c *Client) BatchGetChildren(ctx context.Context, childIDs []string) (*identityv1.BatchGetChildrenResponse, error)

BatchGetChildren 批量获取儿童。

func (*Client) BatchGetUsers

func (c *Client) BatchGetUsers(ctx context.Context, userIDs []string) (*identityv1.BatchGetUsersResponse, error)

BatchGetUsers 批量获取用户。

func (*Client) BlockUser

BlockUser 封禁用户。

func (*Client) CreateUser

CreateUser 创建用户。

func (*Client) DeactivateUser

DeactivateUser 停用用户。

func (*Client) GetChild

func (c *Client) GetChild(ctx context.Context, childID string) (*identityv1.GetChildResponse, error)

GetChild 获取单个儿童。

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, userID string) (*identityv1.GetUserResponse, error)

GetUser 获取单个用户。

func (*Client) LifecycleRaw

func (c *Client) LifecycleRaw() identityv1.IdentityLifecycleClient

LifecycleRaw 返回原始生命周期服务客户端。

func (*Client) ReadRaw

func (c *Client) ReadRaw() identityv1.IdentityReadClient

ReadRaw 返回原始读取服务客户端。

func (*Client) SearchUsers

SearchUsers 搜索用户。

func (*Client) UpdateUser

UpdateUser 更新用户。

type GuardianshipClient

type GuardianshipClient struct {
	// contains filtered or unexported fields
}

GuardianshipClient 监护关系服务客户端。

func NewGuardianshipClient

NewGuardianshipClient 创建监护关系客户端。

func (*GuardianshipClient) AddGuardian

AddGuardian 创建监护关系。

func (*GuardianshipClient) BatchRevokeGuardians

BatchRevokeGuardians 批量撤销监护关系。

func (*GuardianshipClient) CommandRaw

CommandRaw 返回原始监护关系命令客户端。

func (*GuardianshipClient) GetUserChildren

func (c *GuardianshipClient) GetUserChildren(ctx context.Context, userID string) (*identityv1.ListChildrenResponse, error)

GetUserChildren 使用默认分页列出用户的监护儿童。

func (*GuardianshipClient) ImportGuardians

ImportGuardians 批量导入监护关系。

func (*GuardianshipClient) IsGuardian

func (c *GuardianshipClient) IsGuardian(ctx context.Context, userID, childID string) (*identityv1.IsGuardianResponse, error)

IsGuardian 判断用户是否为儿童监护人。

func (*GuardianshipClient) ListChildren

ListChildren 列出用户的监护儿童。

func (*GuardianshipClient) ListGuardians

ListGuardians 列出儿童的监护人。

func (*GuardianshipClient) QueryRaw

QueryRaw 返回原始监护关系查询客户端。

func (*GuardianshipClient) RevokeGuardian

RevokeGuardian 撤销监护关系。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL