mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 10:56:25 -07:00
Add deprecation notice to Post and RecentPost
This commit is contained in:
parent
4f925c3622
commit
647df66989
1 changed files with 4 additions and 0 deletions
|
@ -317,6 +317,8 @@ type BoardSection struct {
|
|||
}
|
||||
|
||||
// Post represents each post in the database
|
||||
// Deprecated. Struct was made for use with old database, deprecated since refactor of april 2020.
|
||||
// Please refactor all code that uses this struct to use a struct that alligns with the new database structure and functions.
|
||||
type Post struct {
|
||||
ID int `json:"no"`
|
||||
ParentID int `json:"resto"`
|
||||
|
@ -426,6 +428,8 @@ type MessagePostContainer struct {
|
|||
Message string
|
||||
}
|
||||
|
||||
// Deprecated. Struct was made for use with old database, deprecated since refactor of april 2020.
|
||||
// Please refactor all code that uses this struct to use a struct that alligns with the new database structure and functions.
|
||||
type RecentPost struct {
|
||||
BoardName string
|
||||
BoardID int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue