Implement dynamically getting board data
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package database
|
||||
|
||||
import "time"
|
||||
|
||||
type Board struct {
|
||||
Id int
|
||||
Slug string
|
||||
Name string
|
||||
Tag string
|
||||
}
|
||||
|
||||
type Thread struct {
|
||||
Id int
|
||||
BoardId int
|
||||
Subject string
|
||||
CreatedAt time.Time
|
||||
BumpedAt time.Time
|
||||
}
|
||||
|
||||
type Post struct {
|
||||
Id int
|
||||
ThreadId int
|
||||
Author string
|
||||
Body string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user