buy

package
v0.0.0-...-e6e6a7d Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(c *gin.Context)

func Pay

func Pay(c *gin.Context)

Pay 订单支付接口

func WXPayedNotify

func WXPayedNotify(c *gin.Context)

Types

type Freight

type Freight struct {
	ComSkuId   int     `json:"comSkuId"`
	FreightFee float64 `json:"freightFee"`
	FreightWay string  `json:"freightWay"`
}

type Req

type Req struct {
	OrderType      string `json:"orderType"`
	PaySn          string `json:"paySn"`
	PaymentCode    string `json:"paymentCode"`
	PaymentChannel string `json:"paymentChannel"`
}

type ReqBuyCalculate

type ReqBuyCalculate struct {
	AddressId int   `json:"addressId"`
	CartIds   []int `json:"cartIds"`
}

type RespBuyCalculate

type RespBuyCalculate struct {
	ComAmount          float64   `json:"comAmount"`
	PayAmount          float64   `json:"payAmount"`
	ComFreightList     []Freight `json:"comFreightList"`
	FreightUnifiedFee  float64   `json:"freightUnifiedFee"`
	FreightTemplateFee float64   `json:"freightTemplateFee"`
	PayFreightFee      float64   `json:"payFreightFee"`
	SubTotal           float64   `json:"subTotal"`
	ComNum             int       `json:"comNum"`
}

Jump to

Keyboard shortcuts

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