tapdb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChargeEvent

func ChargeEvent(appid, uid, orderId, ip, product, payment string, amount int)

付费成功事件上报 https://www.tapdb.com/help/api#event

Types

type OrderReq

type OrderReq struct {
	Name       string `json:"name"`
	ClientId   string `json:"client_id"`
	UserId     string `json:"user_id"`
	Type       string `json:"type"`
	Properties Properties
}

type Properties

type Properties struct {
	Ip                    string `json:"ip"`
	OrderId               string `json:"order_id"`
	Amount                int    `json:"amount"`
	VirtualCurrencyAmount int    `json:"virtual_currency_amount"`
	CurrencyType          string `json:"currency_type"`
	Product               string `json:"product"`
	Payment               string `json:"payment"`
}

Jump to

Keyboard shortcuts

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