mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Implemented Reply model
This commit is contained in:
parent
9827a4af86
commit
90bd800283
@ -1,9 +1,23 @@
|
|||||||
package post
|
package post
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/mrusme/gobbs/models/author"
|
||||||
|
"github.com/mrusme/gobbs/models/reply"
|
||||||
|
)
|
||||||
|
|
||||||
type Post struct {
|
type Post struct {
|
||||||
ID string
|
ID string
|
||||||
|
|
||||||
Subject string
|
Subject string
|
||||||
|
Body string
|
||||||
|
Type string // "post", "url"
|
||||||
|
|
||||||
|
Pinned bool
|
||||||
|
Closed bool
|
||||||
|
|
||||||
|
Author author.Author
|
||||||
|
|
||||||
|
Replies []reply.Reply
|
||||||
}
|
}
|
||||||
|
|
||||||
func (post Post) FilterValue() string {
|
func (post Post) FilterValue() string {
|
||||||
|
11
models/reply/reply.go
Normal file
11
models/reply/reply.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package reply
|
||||||
|
|
||||||
|
import "github.com/mrusme/gobbs/models/author"
|
||||||
|
|
||||||
|
type Reply struct {
|
||||||
|
ID string
|
||||||
|
|
||||||
|
Body string
|
||||||
|
|
||||||
|
Author author.Author
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user