wxmp

package
v0.0.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type WxToken

type WxToken struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
	ExpiresIn    int64  `json:"expires_in"`
	OpenId       string `json:"openid"`
	UnionId      string `json:"unionid"`
}

type WxmpController

type WxmpController struct {
	controller.ResourceController
	WxmpService *WxmpService `inject:"wxmpService"`
}

func (*WxmpController) GetSignature

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

func (*WxmpController) InitRouter

func (e *WxmpController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup

*

  • 处理WEB验证码的API路由

type WxmpService

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

func (*WxmpService) GetApp

func (*WxmpService) GetSignature

func (s *WxmpService) GetSignature(ctx context.Context, appId string, url string, nonce string, timestamp int64) (*object.HashMap, error)

func (*WxmpService) GetSocialUserByCode

func (s *WxmpService) 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