Documentation ¶
Index ¶
- func StatisticCommentQuery(name string) int
- func StatisticDailyQuery() int
- func StatisticLikeDel(name string)
- func StatisticLikeQuery(name, dtype string) interface{}
- func StatisticLikeUpdate(name string, count int)
- func StatisticShareDel(name string)
- func StatisticShareQuery(name, dtype string) interface{}
- func StatisticShareUpdate(name string, count int)
- func StatisticViewDel(name string)
- func StatisticViewQuery(name string) int
- func StatisticViewQueryAll() []response.ViewPosts
- func StatisticsViewUpdate(name string, count int)
- func StatisticsViewUpdateFull(name string, count int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatisticCommentQuery ¶
StatisticCommentQuery 获取评论数
func StatisticLikeDel ¶
func StatisticLikeDel(name string)
func StatisticLikeQuery ¶
func StatisticLikeQuery(name, dtype string) interface{}
StatisticLikeQuery 获取点赞数
func StatisticLikeUpdate ¶
StatisticLikeUpdate 更新点赞
func StatisticShareDel ¶
func StatisticShareDel(name string)
func StatisticShareQuery ¶
func StatisticShareQuery(name, dtype string) interface{}
StatisticShareQuery 获取分享量
func StatisticShareUpdate ¶
StatisticShareUpdate 更新分享量 尽力保证更新成功所以不返回错误 按照逻辑 不存在时只会创建初始值为1的数据
func StatisticViewQueryAll ¶
StatisticViewQueryAll 用于响应后台 需要附带post的title
func StatisticsViewUpdate ¶
StatisticsViewUpdate 更新访问量
func StatisticsViewUpdateFull ¶
StatisticsViewUpdateFull 全量更新
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.