1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-09-29 04:45:55 -04:00
neonmodem/models/post/post.go

34 lines
460 B
Go
Raw Normal View History

2022-12-28 22:22:36 -05:00
package post
2022-12-30 01:44:31 -05:00
import (
"github.com/mrusme/gobbs/models/author"
"github.com/mrusme/gobbs/models/reply"
)
2022-12-28 22:22:36 -05:00
type Post struct {
ID string
Subject string
2022-12-30 01:44:31 -05:00
Body string
Type string // "post", "url"
Pinned bool
Closed bool
Author author.Author
Replies []reply.Reply
2022-12-28 22:22:36 -05:00
}
func (post Post) FilterValue() string {
return post.Subject
}
func (post Post) Title() string {
return post.Subject
}
func (post Post) Description() string {
return post.ID
}