redis

package
v0.0.0-...-f0ab030 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Favorite

type Favorite struct{}

func (Favorite) AddFavoriteContest

func (f Favorite) AddFavoriteContest(user_id, contest_id int64, createdTime time.Time)

AddFavoriteContest 往集合 user_id:xxx_favor_contest 中添加 contest_id

func (Favorite) CheckFavoriteContest

func (f Favorite) CheckFavoriteContest(user_id int64) bool

CheckFavoriteContest 检查集合 user_id:xxx_favor_contest 是否存在

func (Favorite) CountFavoriteContest

func (f Favorite) CountFavoriteContest(user_id int64) (int64, error)

CountFavoriteContest 统计集合 user_id:xxx_favor_contest 中的数量

func (Favorite) DelFavoriteContest

func (f Favorite) DelFavoriteContest(user_id, contest_id int64)

DelFavoriteContest 往集合 user_id:xxx_favor_contest 中添加 contest_id

func (Favorite) ExistFavoriteContest

func (f Favorite) ExistFavoriteContest(user_id, contest_id int64) bool

ExistFavoriteContest 检查集合 user_id:xxx_favor_contest 中是否存在 contest_id

func (Favorite) GetFavoriteContest

func (f Favorite) GetFavoriteContest(user_id int64) []int64

GetFavoriteContest 获取集合 user_id:xxx_favor_contest 中的所有 contest_id

Jump to

Keyboard shortcuts

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