gosora/topic.go
Azareal e835ca4148 Added an installer which automatically populates the configuration file with information you provide. It also seeds the database with the necessary tables and data.
Added the likes table. This is a sign of what's to come.
Improved the installation instructions in README.md
Fixed the SQL in data.sql so that it no longer errors out.
The Admin user now has a default password.
Fixed a status indicator which I overlooked in the previous commit.
The Status field for topics is now deprecated.
Improved the efficiency of plugin_bbcode
Added more bat and shell files to make it easier for you to get things done.
2017-01-10 06:51:28 +00:00

38 lines
552 B
Go

package main
import "html/template"
type Topic struct
{
ID int
Title string
Content string
CreatedBy int
Is_Closed bool
Sticky bool
CreatedAt string
ParentID int
Status string // Deprecated. Marked for removal.
}
type TopicUser struct
{
ID int
Title string
Content interface{}
CreatedBy int
Is_Closed bool
Sticky bool
CreatedAt string
ParentID int
Status string // Deprecated. Marked for removal.
CreatedByName string
Avatar string
Css template.CSS
ContentLines int
Tag string
URL string
URLPrefix string
URLName string
}