types

package
v0.5.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PayConfig

type PayConfig struct {
	NotifyURL string             `json:"notify_url"`
	ReturnURL string             `json:"return_url"`
	TradeNo   string             `json:"trade_no"`
	Money     float64            `json:"money"`
	Currency  model.CurrencyType `json:"currency"`
	User      *model.User        `json:"user"`
}

支付网关的通用配置

type PayNotify

type PayNotify struct {
	TradeNo   string `json:"trade_no"`
	GatewayNo string `json:"gateway_no"`
}

支付回调时的数据结构

type PayRequest

type PayRequest struct {
	Type int            `json:"type"` // 支付类型 1 url 2 qrcode
	Data PayRequestData `json:"data"`
}

请求支付时的数据结构

type PayRequestData

type PayRequestData struct {
	URL    string `json:"url"`
	Method string `json:"method,omitempty"`
	Params any    `json:"params,omitempty"`
}

Jump to

Keyboard shortcuts

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