worktool

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name    string `json:"objectName"` // 对象名,这里代表文件名
	Url     string `json:"fileUrl"`    // 文件路径
	Kind    string `json:"fileType"`   // 文件类型 image等
	Comment string `json:"extraText"`  // 附件流言 可选填
}

type Utils

type Utils interface {
	SendFile(targets []string, file File) error
	SendText(targets []string, content string, atPeoples ...string) error
}

func New

func New(robotId string) Utils

Jump to

Keyboard shortcuts

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