larkpassport

package
v3.0.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	UserIdTypeOpenId  = "open_id"
	UserIdTypeUnionId = "union_id"
	UserIdTypeUserId  = "user_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Email  *string `json:"email,omitempty"`
	Mobile *string `json:"mobile,omitempty"`
	UserId *string `json:"user_id,omitempty"`
}

type CredentialsBuilder

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

builder开始

func NewCredentialsBuilder

func NewCredentialsBuilder() *CredentialsBuilder

func (*CredentialsBuilder) Build

func (builder *CredentialsBuilder) Build() *Credentials

func (*CredentialsBuilder) Email

func (builder *CredentialsBuilder) Email(email string) *CredentialsBuilder

func (*CredentialsBuilder) Mobile

func (builder *CredentialsBuilder) Mobile(mobile string) *CredentialsBuilder

func (*CredentialsBuilder) UserId

func (builder *CredentialsBuilder) UserId(userId string) *CredentialsBuilder

type IdpCredential

type IdpCredential struct {
}

type IdpCredentialId

type IdpCredentialId struct {
	IdpCredentialId *string `json:"idp_credential_id,omitempty"`
}

type IdpCredentialIdBuilder

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

builder开始

func NewIdpCredentialIdBuilder

func NewIdpCredentialIdBuilder() *IdpCredentialIdBuilder

func (*IdpCredentialIdBuilder) Build

func (builder *IdpCredentialIdBuilder) Build() *IdpCredentialId

func (*IdpCredentialIdBuilder) IdpCredentialId

func (builder *IdpCredentialIdBuilder) IdpCredentialId(idpCredentialId string) *IdpCredentialIdBuilder

type MaskSession

type MaskSession struct {
	CreateTime   *int64  `json:"create_time,omitempty,string"`
	TerminalType *int    `json:"terminal_type,omitempty"`
	UserId       *string `json:"user_id,omitempty"`
}

type MaskSessionBuilder

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

builder开始

func NewMaskSessionBuilder

func NewMaskSessionBuilder() *MaskSessionBuilder

func (*MaskSessionBuilder) Build

func (builder *MaskSessionBuilder) Build() *MaskSession

func (*MaskSessionBuilder) CreateTime

func (builder *MaskSessionBuilder) CreateTime(createTime int64) *MaskSessionBuilder

func (*MaskSessionBuilder) TerminalType

func (builder *MaskSessionBuilder) TerminalType(terminalType int) *MaskSessionBuilder

func (*MaskSessionBuilder) UserId

func (builder *MaskSessionBuilder) UserId(userId string) *MaskSessionBuilder

type PassportService

type PassportService struct {
	Session *session
	// contains filtered or unexported fields
}

业务域服务定义

func NewService

func NewService(config *larkcore.Config) *PassportService

构建业务域服务实例

type QuerySessionPathReqBodyBuilder

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

上传文件path开始

func NewQuerySessionPathReqBodyBuilder

func NewQuerySessionPathReqBodyBuilder() *QuerySessionPathReqBodyBuilder

func (*QuerySessionPathReqBodyBuilder) Build

func (*QuerySessionPathReqBodyBuilder) UserIds

type QuerySessionReq

type QuerySessionReq struct {
	Body *QuerySessionReqBody `body:""`
	// contains filtered or unexported fields
}

type QuerySessionReqBody

type QuerySessionReqBody struct {
	UserIds []string `json:"user_ids,omitempty"`
}

type QuerySessionReqBodyBuilder

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

func NewQuerySessionReqBodyBuilder

func NewQuerySessionReqBodyBuilder() *QuerySessionReqBodyBuilder

生成body的New构造器

func (*QuerySessionReqBodyBuilder) Build

1.3 生成body的build方法

func (*QuerySessionReqBodyBuilder) UserIds

func (builder *QuerySessionReqBodyBuilder) UserIds(userIds []string) *QuerySessionReqBodyBuilder

1.2 生成body的builder属性方法

type QuerySessionReqBuilder

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

1.4 生成请求的builder结构体

func NewQuerySessionReqBuilder

func NewQuerySessionReqBuilder() *QuerySessionReqBuilder

生成请求的New构造器

func (*QuerySessionReqBuilder) Body

func (*QuerySessionReqBuilder) Build

func (builder *QuerySessionReqBuilder) Build() *QuerySessionReq

1.5 生成请求的builder的build方法

func (*QuerySessionReqBuilder) UserIdType

func (builder *QuerySessionReqBuilder) UserIdType(userIdType string) *QuerySessionReqBuilder

1.5 生成请求的builder属性方法

type QuerySessionResp

type QuerySessionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *QuerySessionRespData `json:"data"`
}

func (*QuerySessionResp) Success

func (resp *QuerySessionResp) Success() bool

type QuerySessionRespData

type QuerySessionRespData struct {
	MaskSessions []*MaskSession `json:"mask_sessions,omitempty"`
}

Jump to

Keyboard shortcuts

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