mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Initial users support
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
package types
|
||||
|
||||
type User struct {
|
||||
Id string
|
||||
Username string
|
||||
Avatar string
|
||||
CreatedAt string
|
||||
Id int64 `json:"id"`
|
||||
Bio string `json:"bio"`
|
||||
Username string `json:"username"`
|
||||
Points int64 `json:"reputation_count"`
|
||||
Cover string `json:"cover_url"`
|
||||
Avatar string `json:"avatar_url"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
|
||||
type Submission struct {
|
||||
Id string
|
||||
Title string
|
||||
Link string
|
||||
Cover Media
|
||||
Points int64
|
||||
Upvotes int64
|
||||
Downvotes int64
|
||||
Comments int64
|
||||
Views int64
|
||||
IsAlbum bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user