sdk

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevMode  int32 = 1 // 开发模式,注册开发帐号登陆(开发时使用)
	QuickSDK int32 = 2 // quick sdk
)

sdk平台类型

Variables

This section is empty.

Functions

func Init

func Init(app cfacade.IApplication)

Types

type Callback

type Callback func(code int32, result Params, error ...error)

type Invoke

type Invoke interface {
	SdkId() int32                                                // sdk id
	Login(config *data.SdkRow, params Params, callback Callback) // Login 登录验证接口
	PayCallback(config *data.SdkRow, c *cherryGin.Context)       // PayCallback 支付回调接口
}

func GetInvoke

func GetInvoke(sdkId int32) (invoke Invoke, error error)

type Params

type Params map[string]string

func (Params) GetInt

func (p Params) GetInt(key string, defaultValue ...int) int

func (Params) GetString

func (p Params) GetString(key string) (string, bool)

Jump to

Keyboard shortcuts

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