1
0
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:
マリウス 2022-12-30 01:44:31 -05:00
parent 9827a4af86
commit 90bd800283
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F
2 changed files with 25 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,11 @@
package reply
import "github.com/mrusme/gobbs/models/author"
type Reply struct {
ID string
Body string
Author author.Author
}