Documentation
¶
Index ¶
- func AddEventHandler(ctx *gin.Context)
- func DeleteEventHandler(ctx *gin.Context)
- func EditEventHandler(ctx *gin.Context)
- func GetEventHandler(ctx *gin.Context)
- func GetEventsHandler(ctx *gin.Context)
- func GetFrontEventHandler(ctx *gin.Context)
- func GetFrontEventsHandler(ctx *gin.Context)
- func GetProductsHandler(ctx *gin.Context)
- type FrontEvent
- type FrontEventWithProduct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventHandler ¶
func DeleteEventHandler ¶
func EditEventHandler ¶
func GetEventHandler ¶
func GetEventsHandler ¶
func GetFrontEventHandler ¶
func GetFrontEventsHandler ¶
func GetProductsHandler ¶
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"` }
Click to show internal directories.
Click to hide internal directories.