model

package
v1.1.40-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LarkRequestTimestamp    = "X-Lark-Request-Timestamp"
	LarkRequestRequestNonce = "X-Lark-Request-Nonce"
	LarkSignature           = "X-Lark-Signature"
	LarkRefreshToken        = "X-Refresh-Token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Value    map[string]interface{} `json:"value"`
	Tag      string                 `json:"tag"`
	Option   string                 `json:"option"`
	Timezone string                 `json:"timezone"`
}

type Base

type Base struct {
	OpenID        string `json:"open_id"`
	UserID        string `json:"user_id"`
	OpenMessageID string `json:"open_message_id"`
	TenantKey     string `json:"tenant_key"`
	Token         string `json:"token"`
	Timezone      string `json:"timezone"`
}

type Card

type Card struct {
	*Base
	Action *Action `json:"action"`
}

type Challenge

type Challenge struct {
	Challenge string `json:"challenge"`
	Token     string `json:"token"`
	Type      string `json:"type"`
}

type HTTPCard

type HTTPCard struct {
	Header    *Header
	Request   *core.OapiRequest
	Input     []byte
	Response  *core.OapiResponse
	Type      constants.CallbackType
	Output    interface{}
	Challenge string
	Err       error
}
type Header struct {
	Timestamp    string
	Nonce        string
	Signature    string
	RefreshToken string
}

Jump to

Keyboard shortcuts

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