wxcp

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start added in v0.0.14

func Start()

Types

type Work

type Work struct {
	*work.Work
	JSSdk      *jssdk.Client
	AgentJSSdk *jssdk.Client
	// contains filtered or unexported fields
}

func (*Work) GetAPIAccessToken

func (w *Work) GetAPIAccessToken() (string, error)

func (*Work) UserFromCode

func (w *Work) UserFromCode(code string) (*providers.User, error)

type WxcpController

type WxcpController struct {
	WxcpService *WxcpService
}

func (*WxcpController) GetAgentSignature

func (c *WxcpController) GetAgentSignature(ctx *gin.Context)

func (*WxcpController) GetSignature

func (c *WxcpController) GetSignature(ctx *gin.Context)

func (*WxcpController) InitRouter

func (e *WxcpController) InitRouter(g *gin.Engine)

*

  • 处理WEB验证码的API路由

type WxcpService

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

func (*WxcpService) GetAgentSignature

func (s *WxcpService) GetAgentSignature(ctx context.Context, corpId string, agentId int, url string, nonce string, timestamp int64) (*object.HashMap, error)

func (*WxcpService) GetApp

func (s *WxcpService) GetApp(corpId string, agentId int) *Work

func (*WxcpService) GetSignature

func (s *WxcpService) GetSignature(ctx context.Context, corpId string, agentId int, url string, nonce string, timestamp int64) (*object.HashMap, error)

func (*WxcpService) GetSocialUserByCode

func (s *WxcpService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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