weixin

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapter

func Adapter() *weiXinAdapter

Types

type AppService added in v1.0.6

type AppService struct {
	AppId  string
	CorpId string
	Secret string
}

func (*AppService) GetToken added in v1.0.6

func (w *AppService) GetToken() (string, error)

func (*AppService) GetTokenCache added in v1.0.6

func (w *AppService) GetTokenCache() (string, error)

func (*AppService) GetUid added in v1.0.6

func (w *AppService) GetUid(token, user string) (string, error)

GetUid user = email || mobile

func (*AppService) SendMsg added in v1.0.6

func (w *AppService) SendMsg(toUser []string, msgType, content string) (string, error)

SendMsg ([]string{"18888888888"}, "text", `{"content":"东方快递使命必达!"}`)

Jump to

Keyboard shortcuts

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