weixin

package module
v0.0.0-...-b1cb751 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 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

type AppService struct {
	AppId  string
	CorpId string
	Secret string
}

func (*AppService) GetToken

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

func (*AppService) GetTokenCache

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

func (*AppService) GetUid

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

GetUid user = email || mobile

func (*AppService) SendMsg

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