message

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgSend

func MsgSend(orgid, userids *string, content interface{})

1.根据 access_token 和 user_id 发送消息

func MsgSendObject

func MsgSendObject(orgid *string, payload interface{})

根据实用方式改的接口,传payload

Types

type MessageNews

type MessageNews struct {
	MsgType string `json:"msgType"`
	UserIds string `json:"userIds"`
	Msg     struct {
		NewsList News `json:"newsList"`
	} `json:"msg"`
}

type MessageText

type MessageText struct {
	MsgType string `json:"msgType"`
	UserIds string `json:"userIds"`
	Msg     struct {
		Content string `json:"content"`
	} `json:"msg"`
}

type News

type News struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	PicURL      string `json:"picUrl"`
	URL         string `json:"url"`
}

Jump to

Keyboard shortcuts

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