bagpay

package
v0.0.0-...-ca656e9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeBadRedirectTo data.CodeType = -1
	CodeBagNotFound   data.CodeType = -2
	CodeBadName       data.CodeType = -4
	CodeBadPhone      data.CodeType = -5
	CodeBadLocation   data.CodeType = -6
	CodeBadEmail      data.CodeType = -7
	CodeWupinNotFound data.CodeType = -9
	CodeWupinNotShort data.CodeType = -10
)

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewJsonData

func NewJsonData(url string) data.Data

Types

type Data

type Data struct {
	Url string `json:"url"`
}

func NewData

func NewData(url string) Data

type Query

type Query struct {
	Type       modeltype.PayFromType `form:"type"`
	RedirectTo string                `form:"redirectto"`
	BagID      uint                  `form:"bagid"`

	UserName     string `form:"username"`
	UserPhone    string `form:"userphone"`
	UserLocation string `form:"userlocation"`
	UserWechat   string `form:"userwechat"`
	UserEmail    string `form:"useremail"`
	UserRemark   string `form:"userremark"`
}

Jump to

Keyboard shortcuts

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