Documentation ¶
Index ¶
- func GetQRCodeURL(accessToken string, scene string, expireSeconds ...int) (string, error)
- func MakeMessageHandler(c echo.Context, ...) func(*server.Server, *message.MixMessage) *message.Reply
- func RegisterEventHandler(event EventType, handler Handler)
- type ActionInfo
- type EventType
- type Handler
- type RequestQRCodeCreate
- type ResponseQRCodeCreate
- type Scene
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQRCodeURL ¶
func MakeMessageHandler ¶
func RegisterEventHandler ¶
Types ¶
type ActionInfo ¶
type ActionInfo struct {
Scene Scene `json:"scene"`
}
type RequestQRCodeCreate ¶
type RequestQRCodeCreate struct { ExpireSeconds int `json:"expire_seconds,omitempty"` ActionName string `json:"action_name"` ActionInfo ActionInfo `json:"action_info"` }
{ "expire_seconds": 604800, "action_name": "QR_SCENE", "action_info": { "scene": { "scene_id": 123 } } }
type ResponseQRCodeCreate ¶
Click to show internal directories.
Click to hide internal directories.