statistics_dao

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatisticCommentQuery

func StatisticCommentQuery(name string) int

StatisticCommentQuery 获取评论数

func StatisticDailyQuery

func StatisticDailyQuery() int

StatisticDailyQuery 获取当日访问量 依赖于临时内存

func StatisticLikeDel

func StatisticLikeDel(name string)

func StatisticLikeQuery

func StatisticLikeQuery(name, dtype string) interface{}

StatisticLikeQuery 获取点赞数

func StatisticLikeUpdate

func StatisticLikeUpdate(name string, count int)

StatisticLikeUpdate 更新点赞

func StatisticShareDel

func StatisticShareDel(name string)

func StatisticShareQuery

func StatisticShareQuery(name, dtype string) interface{}

StatisticShareQuery 获取分享量

func StatisticShareUpdate

func StatisticShareUpdate(name string, count int)

StatisticShareUpdate 更新分享量 尽力保证更新成功所以不返回错误 按照逻辑 不存在时只会创建初始值为1的数据

func StatisticViewDel

func StatisticViewDel(name string)

StatisticViewDel 尽力删除模型 不管存不存在数据都会尝试删除

func StatisticViewQuery

func StatisticViewQuery(name string) int

StatisticViewQuery 获取访问量

func StatisticViewQueryAll

func StatisticViewQueryAll() []response.ViewPosts

StatisticViewQueryAll 用于响应后台 需要附带post的title

func StatisticsViewUpdate

func StatisticsViewUpdate(name string, count int)

StatisticsViewUpdate 更新访问量

func StatisticsViewUpdateFull

func StatisticsViewUpdateFull(name string, count int)

StatisticsViewUpdateFull 全量更新

Types

This section is empty.

Jump to

Keyboard shortcuts

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