notify

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WxWorkerNotify

func WxWorkerNotify(tag, messageType, content, people, groupUrl string) error

func WxWorkerTextNotifyAll

func WxWorkerTextNotifyAll(tag, content, groupUrl string) error

Types

type Receiver

type Receiver struct {
	Id           string `json:"id"`
	Name         string `json:"name"`
	ReceiverName string `json:"receiverName"`
	ReceiverId   string `json:"receiverId"`
	ReceiverType string `json:"receiverType"`
	SendChannel  string `json:"send_channel"`
}

type SendMessageApiRequestDto

type SendMessageApiRequestDto struct {
	TaskId     string            `json:"task_id"`
	Receiver   []*Receiver       `json:"receiver"`
	TemplateId string            `json:"template_id"`
	Text       string            `json:"text"`
	Params     map[string]string `json:"params"`
}

type SendMessageApiResponseDto

type SendMessageApiResponseDto struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    string `json:"data"`
}

type WXWorkerReqModel

type WXWorkerReqModel struct {
	Msgtype string `json:"msgtype"`
	Text    struct {
		Content             string   `json:"content"`
		MentionedList       []string `json:"mentioned_list"`
		MentionedMobileList []string `json:"mentioned_mobile_list"`
	} `json:"text"`
}

Jump to

Keyboard shortcuts

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