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
|
|
|
|
Status string
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
Status string
|
|
|
|
|
|
|
|
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
|
2016-12-03 05:00:21 +00:00
|
|
|
}
|