miniapp

package
Version: v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Appid  string
	Secret string
	Token  *utils.Token
	Hook   utils.Hook
}

func New

func New(appid, secret string, Hook ...utils.Hook) *App

New 新建wechat Hook 处理accesstoken的逻辑

func (*App) Auth added in v1.1.0

func (a *App) Auth() *module.Auth

Auth 用户

func (*App) Cloudbase added in v1.1.0

func (a *App) Cloudbase() *module.Cloudbase

Cloudbase 云开发

func (*App) CustomerServiceMessage added in v1.1.0

func (a *App) CustomerServiceMessage() *module.CustomerServiceMessage

CustomerServiceMessage 客服消息

func (*App) DataAnalysis added in v1.1.6

func (a *App) DataAnalysis() *module.DataAnalysis

DataAnalysis 数据分析

func (*App) DecodedData added in v1.1.0

func (a *App) DecodedData() *module.DecodedData

DecodedData 解密数据

func (*App) Get added in v1.1.6

func (a *App) Get(path string, params utils.Query, withAccessToken ...bool) ([]byte, error)

Get

func (*App) GetAccessToken

func (a *App) GetAccessToken(reflush ...bool) *utils.Token

GetAccessToken 获取accessToken 不建议暴露使用

func (*App) GetAccessTokenSafety added in v1.1.0

func (a *App) GetAccessTokenSafety(reflush bool) string

GetAccessTokenSafety 获取公开的accessToken

func (*App) GetAccessTokenWithHook added in v1.1.3

func (a *App) GetAccessTokenWithHook(reflush ...bool) *utils.Token

GetAccessTokenWithHook 获取accessToken 不建议暴露使用

func (*App) GetConfig added in v1.1.0

func (a *App) GetConfig() utils.Config

func (*App) Img added in v1.1.0

func (a *App) Img() *module.Img

Img 图像处理

func (*App) NearbyPoi added in v1.1.0

func (a *App) NearbyPoi() *module.NearbyPoi

NearbyPoi 附近的小程序

func (*App) Ocr added in v1.1.0

func (a *App) Ocr() *module.Ocr

Ocr ocr

func (*App) Operation added in v1.1.0

func (a *App) Operation() *module.Operation

Operation 运维中心

func (*App) PostBody added in v1.1.6

func (a *App) PostBody(path string, body []byte, withAccessToken ...bool) ([]byte, error)

Post

func (*App) SafetyControlCapability added in v1.1.0

func (a *App) SafetyControlCapability() *module.SafetyControlCapability

SafetyControlCapability 安全风控

func (*App) Search added in v1.1.0

func (a *App) Search() *module.Search

Search 小程序搜索

func (*App) ServiceMarket added in v1.1.0

func (a *App) ServiceMarket() *module.ServiceMarket

ServiceMarket 服务市场

func (*App) Soter added in v1.1.0

func (a *App) Soter() *module.Soter

Soter 生物认证

func (*App) SubscribeMessage added in v1.1.0

func (a *App) SubscribeMessage() *module.SubscribeMessage

SubscribeMessage 订阅消息

func (a *App) UrlLink() *module.UrlLink

UrlLink url link

func (*App) UrlScheme added in v1.1.0

func (a *App) UrlScheme() *module.UrlScheme

UrlScheme scheme

func (*App) Wxacode added in v1.1.0

func (a *App) Wxacode() *module.Wxacode

Wxacode 小程序码

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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