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
- func CreatePost(ctx *gin.Context, id int) (err error)
- func GetPostIdByOrder(c *gin.Context, param *models.ParamPostList) (ids []string, err error)
- func GetPostVoteData(c *gin.Context, ids []string) (data []int64, err error)
- func VoteForPost(ctx *gin.Context, userID, postID string, direction float64) (err error)
Constants ¶
const ( KeyPostTimeZSet = "bluebell:post:time" KeyPostScoreZSet = "bluebell:post:score" KeyPostVotedZSetPF = "bluebell:post:voted:" )
Variables ¶
This section is empty.
Functions ¶
func GetPostIdByOrder ¶
Types ¶
This section is empty.