getwupin

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeWupinNotFound data.CodeType = -1
)

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewJsonData

func NewJsonData(wp *model.Wupin) data.Data

Types

type Class

type Class struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

type Query

type Query struct {
	ID uint `form:"id"`
}

type Wupin

type Wupin struct {
	ID         uint            `json:"id"`
	Name       string          `json:"name"`
	Pic        string          `json:"pic"`
	ClassID    uint            `json:"classId"`
	ClassOf    *Class          `json:"classOf"`
	Tag        string          `json:"tag,omitempty"`
	HotPrice   int64           `json:"hotPrice,omitempty"`
	RealPrice  int64           `json:"realPrice"`
	Info       string          `json:"info"`
	Ren        string          `json:"ren"`
	Phone      string          `json:"phone"`
	Email      string          `json:"email,omitempty"`
	Wechat     string          `json:"wechat,omitempty"`
	Location   string          `json:"location"`
	BuyMoney   modeltype.Price `json:"buyprice"`
	BuyTotal   modeltype.Total `json:"buytotal"`
	BuyDaohuo  modeltype.Total `json:"buydaohuo"`
	BuyPingJia modeltype.Total `json:"buypingjia"`
	BuyJian    modeltype.Total `json:"buyjiaa"`
	BuyGood    modeltype.Total `json:"buygood"`
}

func NewData

func NewData(wp *model.Wupin) Wupin

Jump to

Keyboard shortcuts

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