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.
|
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
|
|
|
|
ParentID int
|
2017-01-10 06:51:28 +00:00
|
|
|
Status string // Deprecated. Marked for removal.
|
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
|
|
|
}
|