event

package
v0.0.0-...-14907fc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventHandler

func AddEventHandler(ctx *gin.Context)

func DeleteEventHandler

func DeleteEventHandler(ctx *gin.Context)

func EditEventHandler

func EditEventHandler(ctx *gin.Context)

func GetEventHandler

func GetEventHandler(ctx *gin.Context)

func GetEventsHandler

func GetEventsHandler(ctx *gin.Context)

func GetFrontEventHandler

func GetFrontEventHandler(ctx *gin.Context)

func GetFrontEventsHandler

func GetFrontEventsHandler(ctx *gin.Context)

func GetProductsHandler

func GetProductsHandler(ctx *gin.Context)

Types

type FrontEvent

type FrontEvent struct {
	Id          string  `json:"id"`
	Name        string  `json:"name"`
	ProductName string  `json:"pname"`
	EventPrice  float32 `json:"price"`
	EventNum    string  `json:"num"`
	StartTime   string  `json:"start_time"`
	EndTime     string  `json:"end_time"`
	CreateTime  string  `json:"create_time"`
	ProductId   string  `json:"pid"`
}

type FrontEventWithProduct

type FrontEventWithProduct struct {
	EventId    string  `json:"id"` //活动ID
	LeftNum    int     `json:"num"`
	EventPrice float32 `json:"price"` //活动价格
	StartTime  string  `json:"start_time"`
	EndTime    string  `json:"end_time"`

	ProductId          string  `json:"pid"`
	ProductName        string  `json:"name"`    //商品名称
	Picture            string  `json:"pic"`     //base64
	Price              float32 `json:"p_price"` //原价
	ProductDescription string  `json:"pdesc"`
	Unit               string  `json:"unit"`
}

Jump to

Keyboard shortcuts

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