common

package
v0.0.0-...-bfe4a9d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBGet

func DBGet() *sql.DB

Types

type Req

type Req struct {
	UserID       int    `json:"user_id"`
	OrderID      string `json:"order_id"`
	Amount       int    `json:"amount"` // money amount
	ProductID    int    `json:"product_id"`
	ProductCount int    `json:"product_count"` // how many product to order
	CouponID     int    `json:"coupon_id"`     // optional
}

func MustGetReq

func MustGetReq(c *gin.Context) *Req

Jump to

Keyboard shortcuts

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