ww

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Id() string
	Test() string
	AgentGet() (res map[string]interface{})
	DepartmentSimpleList(id string) []interface{}
	DepartmentGet(id string) map[string]interface{}
	UserList(id string) []interface{}
	UserGet(userId string) map[string]interface{}
	GetUserDetail(userTicket string) map[string]interface{}
	GetJsApiTicket() (ticket string)
	GetUserInfo(code string) (res map[string]interface{})
	MessageSend(msg Message) (err error)
}

func NewApp

func NewApp(config Config) App

type Config

type Config struct {
	CorpId     string `json:"corpid"`
	CorpSecret string `json:"corpsecret"`
	AgentId    string `json:"agentid"`
}

type Message

type Message struct {
	ToUser   string   `json:"touser"`
	MsgType  string   `json:"msgtype"`
	AgentId  string   `json:"agentid"`
	TextCard TextCard `json:"textcard"`
}

Message 微信模板消息结构体

type TextCard

type TextCard struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Url         string `json:"url"`
}

Jump to

Keyboard shortcuts

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