lark

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap added in v0.1.4

func FuncMap() template.FuncMap

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) GetAccessToken

func (c *Client) GetAccessToken() (*TokenResponse, error)

func (*Client) GetOpenId

func (c *Client) GetOpenId(email string) (*OpenIdItem, error)

type Config

type Config struct {
	AppID     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

func NewConfig

func NewConfig() *Config

type OpenIdItem

type OpenIdItem struct {
	OpenId string `json:"open_id,omitempty"`
	UserId string `json:"user_id,omitempty"`
}

type OpenIdList

type OpenIdList struct {
	EmailUsers map[string][]OpenIdItem `json:"email_users"`
}

type Response

type Response[T any] struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data T      `json:"data"`
}

type TokenResponse

type TokenResponse struct {
	Code           int    `json:"code"`
	Msg            string `json:"msg"`
	AppAccessToken string `json:"app_access_token"`
	Expire         int    `json:"expire"`
}

Jump to

Keyboard shortcuts

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