feishu

package
v0.0.0-...-6a6dcdd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeiShu

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

func New

func New(webhookUrl string, secret string) *FeiShu

func (*FeiShu) SendPostTxt

func (m *FeiShu) SendPostTxt(title string, contents []*PostItem)

SendPostTxt @Description: 发送富文本

func (*FeiShu) SendTxt

func (m *FeiShu) SendTxt(txt string)

func (*FeiShu) SendTxtWithTitle

func (m *FeiShu) SendTxtWithTitle(title string, txt string)

type PostItem

type PostItem struct {
	Tag    string `json:"tag"` //text,a,at
	Text   string `json:"text,omitempty"`
	Href   string `json:"href,omitempty"`
	UserId string `json:"user_id,omitempty"`
}

PostItem 富文本内容项,参考:https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot

type Response

type Response struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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