wxa_code

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 7 Imported by: 0

README

小程序码

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WxaCode

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

WxaCode 小程序码 @see https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html @see https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Business/qrcode.generate.html

func New

func New(account contracts.AccountInterface) *WxaCode

func (*WxaCode) CreateQrCode

func (code *WxaCode) CreateQrCode(path string, opts map[string]interface{}) ([]byte, string, error)

CreateQrCode 获取小程序二维码,适用于需要的码数量较少的业务场景 通过该接口生成的小程序码,永久有效,有数量限制

func (*WxaCode) Get

func (code *WxaCode) Get(path string, opts map[string]interface{}) ([]byte, string, error)

Get 获取小程序码,适用于需要的码数量较少的业务场景 通过该接口生成的小程序码,永久有效,有数量限制

func (*WxaCode) GetUnlimited

func (code *WxaCode) GetUnlimited(scene string, opts map[string]interface{}) ([]byte, string, error)

GetUnlimited 获取小程序码,适用于需要的码数量极多的业务场景 通过该接口生成的小程序码,永久有效,数量暂无限制

Jump to

Keyboard shortcuts

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