Documentation ¶
Index ¶
- type CallBackAction
- type Card
- type CardActionTriggerEvent
- type CardActionTriggerEventHandler
- type CardActionTriggerRequest
- type CardActionTriggerResponse
- type Context
- type Inline
- type Operator
- type TemplateCard
- type Toast
- type URL
- type URLPreviewGetEvent
- type URLPreviewGetEventHandler
- type URLPreviewGetRequest
- type URLPreviewGetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackAction ¶
type CallBackAction struct { Value map[string]interface{} `json:"value"` Tag string `json:"tag"` Option string `json:"option"` Timezone string `json:"timezone"` Name string `json:"name"` FormValue map[string]interface{} `json:"form_value"` InputValue string `json:"input_value"` Options []string `json:"options"` Checked bool `json:"checked"` }
type Card ¶
type Card struct { // template/raw Type string `json:"type,omitempty"` // type为raw时:data为larkcard.MessageCard; type为raw时,data为TemplateCard Data interface{} `json:"data,omitempty"` }
type CardActionTriggerEvent ¶
type CardActionTriggerEvent struct { *larkevent.EventV2Base // 事件基础数据 *larkevent.EventReq // 请求原生数据 Event *CardActionTriggerRequest `json:"event"` // 事件内容 }
func (*CardActionTriggerEvent) RawReq ¶
func (m *CardActionTriggerEvent) RawReq(req *larkevent.EventReq)
type CardActionTriggerEventHandler ¶
type CardActionTriggerEventHandler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewCardActionTriggerEventHandler ¶
func NewCardActionTriggerEventHandler(handler func(context.Context, *CardActionTriggerEvent) (*CardActionTriggerResponse, error)) *CardActionTriggerEventHandler
func (*CardActionTriggerEventHandler) Event ¶
func (h *CardActionTriggerEventHandler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
type CardActionTriggerRequest ¶
type CardActionTriggerRequest struct { Operator *Operator `json:"operator,omitempty"` Token string `json:"token,omitempty"` // 更新卡片用的token(凭证) Action *CallBackAction `json:"action,omitempty"` Host string `json:"host,omitempty"` // 宿主: im_message/im_top_notice DeliveryType string `json:"delivery_type,omitempty"` // 卡片发送渠道: url_preview/ Context *Context `json:"context,omitempty"` }
type TemplateCard ¶
type URLPreviewGetEvent ¶
type URLPreviewGetEvent struct { *larkevent.EventV2Base // 事件基础数据 *larkevent.EventReq // 请求原生数据 Event *URLPreviewGetRequest `json:"event"` // 事件内容 }
func (*URLPreviewGetEvent) RawReq ¶
func (m *URLPreviewGetEvent) RawReq(req *larkevent.EventReq)
type URLPreviewGetEventHandler ¶
type URLPreviewGetEventHandler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewURLPreviewGetEventHandler ¶
func NewURLPreviewGetEventHandler(handler func(context.Context, *URLPreviewGetEvent) (*URLPreviewGetResponse, error)) *URLPreviewGetEventHandler
func (*URLPreviewGetEventHandler) Event ¶
func (h *URLPreviewGetEventHandler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
type URLPreviewGetRequest ¶
type URLPreviewGetResponse ¶
Click to show internal directories.
Click to hide internal directories.