work

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

企业微信

官方文档

快速入门

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	// contains filtered or unexported fields
}

Work 企业微信

func NewWork

func NewWork(cfg *config.Config) *Work

NewWork init work

func (*Work) GetAccessToken added in v1.0.3

func (wk *Work) GetAccessToken() (string, error)

GetAccessToken 获取access_token

func (*Work) GetAppMsg added in v1.0.3

func (wk *Work) GetAppMsg() *appmessage.AppMsg

func (*Work) GetContext

func (wk *Work) GetContext() *context.Context

GetContext get Context

func (*Work) GetDepartMent added in v1.0.8

func (wk *Work) GetDepartMent() *department.DepartMent

func (*Work) GetMenu added in v1.0.3

func (wk *Work) GetMenu() *menu.Menu

GetMenu 菜单管理接口

func (*Work) GetMsgAudit

func (wk *Work) GetMsgAudit() (*msgaudit.Client, error)

GetMsgAudit get msgAudit

func (*Work) GetOauth

func (wk *Work) GetOauth() *oauth.Oauth

GetOauth get oauth

func (*Work) GetServer added in v1.0.3

func (wk *Work) GetServer(req *http.Request, writer http.ResponseWriter) *server.Server

GetServer 消息管理:接收事件,被动回复消息管理

func (*Work) GetUser added in v1.0.3

func (wk *Work) GetUser() *user.User

func (*Work) SetAccessTokenHandle added in v1.0.3

func (wk *Work) SetAccessTokenHandle(accessTokenHandle credential.AccessTokenHandle)

SetAccessTokenHandle 自定义access_token获取方式

Directories

Path Synopsis
Package config 企业微信config配置
Package config 企业微信config配置
member
user
Package user migrate 用于微信公众号账号迁移,获取openID变化 参考文档:https://kf.qq.com/faq/1901177NrqMr190117nqYJze.html
Package user migrate 用于微信公众号账号迁移,获取openID变化 参考文档:https://kf.qq.com/faq/1901177NrqMr190117nqYJze.html
Package msgaudit for unsupport platform
Package msgaudit for unsupport platform

Jump to

Keyboard shortcuts

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