admingetwupin

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: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewJsonData

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

Types

type Class

type Class struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
	Show bool   `json:"show"`
	Down bool   `json:"down"`
}

type Query

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

type Wupin

type Wupin struct {
	ID         uint                `json:"id"`
	Name       string              `json:"name"`
	ClassID    uint                `json:"classId"`
	Tag        string              `json:"tag"`
	HotPrice   modeltype.PriceNull `json:"hotPrice"`
	RealPrice  modeltype.Price     `json:"realPrice"`
	Info       string              `json:"info"`
	Ren        string              `json:"ren"`
	Phone      string              `json:"phone"`
	Email      string              `json:"email"`
	Wechat     string              `json:"wechat"`
	Location   string              `json:"location"`
	Pic        string              `json:"pic"`
	ClassOf    *Class              `json:"classOf"`
	BuyTotal   modeltype.Total     `json:"buytotal"`
	BuyDaohuo  modeltype.Total     `json:"buydaohuo"`
	BuyGood    modeltype.Total     `json:"buygood"`
	BuyPrice   modeltype.Price     `json:"buyprice"`
	BuyPingjia modeltype.Total     `json:"buypingjia"`
	BuyJian    modeltype.Total     `json:"buyjian"`
	Hot        bool                `json:"hot"`
	Down       bool                `json:"down"`
}

func NewData

func NewData(wupin *model.Wupin) Wupin

Jump to

Keyboard shortcuts

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