thread

package
v0.0.0-...-8b29e06 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterAddNewThread

func AfterAddNewThread(thread *model.Thread)

发信帖子后要增加一些统计信息

发帖后影响的逻辑

-- forum       threads_cnt+1 todaythreads_cnt+1
-- thread      插入一条数据:forum_id  user_id userip subject
-- post        插入一条数据:thread_id user_id isfirst=1 userip doctype=0 message
-- mythread    插入一条数据:user_id thread_id
-- user        threads_cnt+1 credits_num+3[发帖加积分]

func GetUserThreads

func GetUserThreads(uid int) (threads []model.Thread, err error)

获取指定用户的最新的10条thread [id subject]

Types

This section is empty.

Jump to

Keyboard shortcuts

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