2016-12-02 07:38:54 +00:00
|
|
|
package main
|
2016-12-04 06:16:59 +00:00
|
|
|
import "html/template"
|
2016-12-02 07:38:54 +00:00
|
|
|
|
|
|
|
type Topic struct
|
|
|
|
{
|
|
|
|
ID int
|
|
|
|
Title string
|
|
|
|
Content string
|
|
|
|
CreatedBy int
|
|
|
|
Is_Closed bool
|
|
|
|
Sticky bool
|
|
|
|
CreatedAt string
|
|
|
|
ParentID int
|
2017-01-10 06:51:28 +00:00
|
|
|
Status string // Deprecated. Marked for removal.
|
2017-01-21 18:16:27 +00:00
|
|
|
IpAddress string
|
|
|
|
PostCount int
|
2016-12-02 07:38:54 +00:00
|
|
|
}
|
|
|
|
|
2016-12-03 05:00:21 +00:00
|
|
|
type TopicUser struct
|
|
|
|
{
|
|
|
|
ID int
|
|
|
|
Title string
|
|
|
|
Content interface{}
|
|
|
|
CreatedBy int
|
|
|
|
Is_Closed bool
|
|
|
|
Sticky bool
|
|
|
|
CreatedAt string
|
2017-02-06 04:52:19 +00:00
|
|
|
LastReplyAt string
|
2016-12-03 05:00:21 +00:00
|
|
|
ParentID int
|
2017-01-10 06:51:28 +00:00
|
|
|
Status string // Deprecated. Marked for removal.
|
2017-01-21 18:16:27 +00:00
|
|
|
IpAddress string
|
|
|
|
PostCount int
|
2016-12-03 05:00:21 +00:00
|
|
|
|
|
|
|
CreatedByName string
|
|
|
|
Avatar string
|
2016-12-04 06:16:59 +00:00
|
|
|
Css template.CSS
|
2016-12-07 09:34:09 +00:00
|
|
|
ContentLines int
|
|
|
|
Tag string
|
2016-12-09 13:46:29 +00:00
|
|
|
URL string
|
|
|
|
URLPrefix string
|
|
|
|
URLName string
|
2017-01-12 02:55:08 +00:00
|
|
|
Level int
|
2016-12-03 05:00:21 +00:00
|
|
|
}
|
2017-02-06 04:52:19 +00:00
|
|
|
|
|
|
|
type TopicsRow struct
|
|
|
|
{
|
|
|
|
ID int
|
|
|
|
Title string
|
|
|
|
Content interface{}
|
|
|
|
CreatedBy int
|
|
|
|
Is_Closed bool
|
|
|
|
Sticky bool
|
|
|
|
CreatedAt string
|
|
|
|
LastReplyAt string
|
|
|
|
ParentID int
|
|
|
|
Status string // Deprecated. Marked for removal.
|
|
|
|
IpAddress string
|
|
|
|
PostCount int
|
|
|
|
|
|
|
|
CreatedByName string
|
|
|
|
Avatar string
|
|
|
|
Css template.CSS
|
|
|
|
ContentLines int
|
|
|
|
Tag string
|
|
|
|
URL string
|
|
|
|
URLPrefix string
|
|
|
|
URLName string
|
|
|
|
Level int
|
|
|
|
|
|
|
|
ForumName string //TopicsRow
|
|
|
|
}
|