redis

package
v0.0.0-...-d993e0e Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-03 11:58:12 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-03 12:06:13 * @FilePath: \bluebell\dao\redis\keys.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-03 15:38:09 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-04 12:06:12 * @FilePath: \bluebell\dao\redis\post.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-03 14:58:10 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-03 19:57:53 * @FilePath: \bluebell\dao\redis\vote.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

Index

Constants

View Source
const (
	KeyPostTimeZSet    = "bluebell:post:time"
	KeyPostScoreZSet   = "bluebell:post:score"
	KeyPostVotedZSetPF = "bluebell:post:voted:"
)

Variables

This section is empty.

Functions

func CreatePost

func CreatePost(ctx *gin.Context, id int) (err error)

func GetPostIdByOrder

func GetPostIdByOrder(c *gin.Context, param *models.ParamPostList) (ids []string, err error)

func GetPostVoteData

func GetPostVoteData(c *gin.Context, ids []string) (data []int64, err error)

func VoteForPost

func VoteForPost(ctx *gin.Context, userID, postID string, direction float64) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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