Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) CommentCount(c context.Context, item *model.Item) (commentCount int, err error)
- func (d *Dao) Context(r *image.NRGBA64) (c *freetype.Context)
- func (d *Dao) CreateIndex(ctx context.Context, name string, mapping string) bool
- func (d *Dao) CreateItemPNG(item model.Item) (location string, err error)
- func (d *Dao) DelSug(c context.Context, seasonID string) (b bool, err error)
- func (d *Dao) DelSugItem(c context.Context, seasonID, itemsID int64) (b bool, err error)
- func (d *Dao) FetchItem(c context.Context) (itemList []*model.Item, err error)
- func (d *Dao) GetBind(c context.Context) (sugList []*model.Sug, err error)
- func (d *Dao) GetItem(c context.Context, sug *model.Sug) (err error)
- func (d *Dao) Index(ctx context.Context, index, typ string, id string, data interface{})
- func (d *Dao) IndexExists(ctx context.Context, index string) bool
- func (d *Dao) InsertMatch(c context.Context, item *model.Item, season model.Score) (affect int64, err error)
- func (d *Dao) Ping(c context.Context) error
- func (d *Dao) SalesCount(c context.Context, item *model.Item) (salesCount int, err error)
- func (d *Dao) SeasonData(c context.Context, item *model.Item) (scoreSlice []model.Score, err error)
- func (d *Dao) SetItem(c context.Context, item *model.Item) (b bool, err error)
- func (d *Dao) SetSug(c context.Context, seasonID string, ItemID int64, score float64) (b bool, err error)
- func (d *Dao) Text(c *freetype.Context, s string, pt *fixed.Point26_6, size int, ...) (err error)
- func (d *Dao) UpdatePic(c context.Context, sug *model.Sug) (affect int64, err error)
- func (d *Dao) Upload(c context.Context, fileType string, fileName string, body io.Reader) (location string, err error)
- func (d *Dao) WishCount(c context.Context, item *model.Item) (wishCount int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { ItemSalesMax map[string]int ItemSalesMin map[string]int ItemWishMax map[string]int ItemWishMin map[string]int ItemCommentMax map[string]int ItemCommentMin map[string]int // contains filtered or unexported fields }
Dao dao
func (*Dao) CommentCount ¶
CommentCount ...
func (*Dao) CreateIndex ¶
CreateIndex ...
func (*Dao) CreateItemPNG ¶
CreateItemPNG make a pic
func (*Dao) DelSugItem ¶
DelSugItem ...
func (*Dao) IndexExists ¶
IndexExists ...
func (*Dao) InsertMatch ¶
func (d *Dao) InsertMatch(c context.Context, item *model.Item, season model.Score) (affect int64, err error)
InsertMatch ...
func (*Dao) SalesCount ¶
SalesCount ...
func (*Dao) SeasonData ¶
SeasonData
func (*Dao) SetSug ¶
func (d *Dao) SetSug(c context.Context, seasonID string, ItemID int64, score float64) (b bool, err error)
SetSug ...
func (*Dao) Text ¶
func (d *Dao) Text(c *freetype.Context, s string, pt *fixed.Point26_6, size int, color image.Image, length fixed.Int26_6) (err error)
Text write letters
Source Files ¶
Click to show internal directories.
Click to hide internal directories.