dt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 14 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
	MicroAppAllApps() (res map[string]interface{})
	MicroAppAppsScopes() (res map[string]interface{})
	AuthScopes() (res map[string]interface{})
	DepartmentListSubId(deptIdList []interface{}) (res []interface{})
	DepartmentGet(id interface{}) (res map[string]interface{})
	UserList(id interface{}, cursor interface{}) (res []interface{})
	UserGet(id interface{}) (res map[string]interface{})
	JsApiTickets() (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"`
	AppKey    string `json:"appKey"`
	AppSecret string `json:"appSecret"`
	AgentId   int    `json:"agentId"`
}

type Message

type Message struct {
	AgentId string     `json:"agent_id"`
	ToUser  string     `json:"userid_list"`
	Msg     MessageMsg `json:"msg"`
}

type MessageMsg

type MessageMsg struct {
	Type string         `json:"msgtype"`
	Card MessageMsgCard `json:"action_card"`
}

type MessageMsgCard

type MessageMsgCard struct {
	Title    string `json:"title"`
	MarkDown string `json:"markdown"`
	Button   string `json:"single_title"`
	Url      string `json:"single_url"`
}

Jump to

Keyboard shortcuts

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