wechat

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Owner   string
	Name    string
	Tag     string
	Event   string
	Number  int
	Commit  string
	Ref     string
	Branch  string
	Author  string
	Message string
	Status  string
	Link    string
	Started int64
	Created int64
}

type MarkdownRequest

type MarkdownRequest struct {
	Msgtype  string                 `json:"msgtype"`
	Markdown map[string]interface{} `json:"markdown"`
}

type Request

type Request struct {
	Msgtype string                 `json:"msgtype"`
	Text    map[string]interface{} `json:"text"`
}

type Response

type Response struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type WeChat

type WeChat struct {
	Build   Build
	Url     []string
	MsgType string
	ToUser  string
	Content string
}

func (*WeChat) MarkdownMessage

func (c *WeChat) MarkdownMessage(md string, at ...string) error

func (*WeChat) Message

func (c *WeChat) Message(content string, at ...string) error

func (*WeChat) Send

func (c *WeChat) Send() error

func (*WeChat) Template

func (c *WeChat) Template(temp string) ([]byte, error)

Jump to

Keyboard shortcuts

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