Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCategory ¶
func DelCategory ¶
func ModifyTopic ¶
func RegisterDB ¶
func RegisterDB()
Types ¶
type Category ¶
type Category struct {
Id int64
Title string
Created time.Time `orm:"index"`
Views int64 `orm:"index"`
TopicTime time.Time `orm:"index"`
TopicCount int64
TopicLastUserId int64
}
func GetAllCategories ¶
type Topic ¶
type Topic struct {
Id int64
Uid int64
Title string
Content string `orm:"size(5000)"`
Attachment string
Created time.Time `orm:"index"`
Updated time.Time `orm:"index"`
Views int64 `orm:"index"`
Author string
ReplyTime time.Time `orm:"index"`
Replycont int64
ReplyLastUserId int64
}
func GetAllTopics ¶
Click to show internal directories.
Click to hide internal directories.