mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-07 09:02:27 +00:00
Add initial frontend and backend
This commit is contained in:
22
backend/model.go
Normal file
22
backend/model.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
type TopicsResponse struct {
|
||||
Topics []Topic `json:"topics"`
|
||||
} // @name Topics
|
||||
|
||||
type Topic struct {
|
||||
TopicID uint `json:"topic_id"`
|
||||
ForumID uint `json:"forum_id"`
|
||||
Title string `json:"title"`
|
||||
Views int `json:"total_views"`
|
||||
Replies int `json:"total_replies"`
|
||||
WebPath string `json:"web_path"`
|
||||
PostTime string `json:"post_time"`
|
||||
LastPostTime string `json:"last_post_time"`
|
||||
Votes Votes
|
||||
} // @name Topic
|
||||
|
||||
type Votes struct {
|
||||
Up int `json:"total_up"`
|
||||
Down int `json:"total_down"`
|
||||
} // @name Votes
|
Reference in New Issue
Block a user