wxcp

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

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 {
	controller.ResourceController
	WxcpService *WxcpService `inject:"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.RouterGroup) *gin.RouterGroup

*

  • 处理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