event

package
v0.0.0-...-3bbbf02 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCache

func InitCache() error

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func GetCache

func GetCache() *Cache

func (*Cache) GetEventInfo

func (c *Cache) GetEventInfo(goodsID int64) *Info

func (*Cache) GetList

func (c *Cache) GetList() *Topic

type Event

type Event struct {
	ID        int64    `json:"id"`
	StartTime int64    `json:"start_time"`
	EndTime   int64    `json:"end_time"`
	List      []*Goods `json:"list"`
}

type Goods

type Goods struct {
	product.Goods
	EventPrice string `json:"event_price"`
	EventType  string `json:"event_type"`
}

type Info

type Info struct {
	EventPrice string `json:"event_price"`
	EventType  string `json:"event_type"`
	StartTime  int64  `json:"start_time"`
	EndTime    int64  `json:"end_time"`
}

type Topic

type Topic struct {
	ID        int64    `json:"id"`
	Topic     string   `json:"topic"`
	Banner    string   `json:"banner"`
	StartTime int64    `json:"start_time"`
	EndTime   int64    `json:"end_time"`
	List      []*Event `json:"list"`
}
var TestData *Topic

Jump to

Keyboard shortcuts

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