1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00

Add deprecation notice to Post and RecentPost

This commit is contained in:
comraderat 2020-05-02 20:11:25 +02:00
parent 4f925c3622
commit 647df66989

View file

@ -317,6 +317,8 @@ type BoardSection struct {
} }
// Post represents each post in the database // 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 { type Post struct {
ID int `json:"no"` ID int `json:"no"`
ParentID int `json:"resto"` ParentID int `json:"resto"`
@ -426,6 +428,8 @@ type MessagePostContainer struct {
Message string 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 { type RecentPost struct {
BoardName string BoardName string
BoardID int BoardID int