feishu

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRobotCardMsg

func SendRobotCardMsg(params RobotCardMsgParam) (err error)

*

  • 发送飞书机器人卡片消息

func SendRobotSimpleMsg

func SendRobotSimpleMsg(hookUrl string, title string, content string) (err error)

*

  • 发送飞书机器人简单消息

Types

type RobotCardMsgButtonParam

type RobotCardMsgButtonParam struct {
	Text string `json:"text"`
	Url  string `json:"url"`
}

type RobotCardMsgFieldParam

type RobotCardMsgFieldParam struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type RobotCardMsgParam

type RobotCardMsgParam struct {
	HookUrl string                    `json:"hook_url"`
	Title   string                    `json:"title"`
	Color   string                    `json:"color"`
	Content string                    `json:"content"`
	Fields  []RobotCardMsgFieldParam  `json:"fields"`
	Remark  string                    `json:"remark"`
	Buttons []RobotCardMsgButtonParam `json:"buttons"`
}

Jump to

Keyboard shortcuts

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