rimgo/types/User.go

25 lines
490 B
Go
Raw Normal View History

2022-01-17 22:11:33 +00:00
package types
type User struct {
2022-01-28 01:41:10 +00:00
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 {
2022-01-17 22:11:33 +00:00
Id string
2022-01-28 01:41:10 +00:00
Title string
Link string
Cover Media
Points int64
Upvotes int64
Downvotes int64
Comments int64
Views int64
IsAlbum bool
2022-01-17 22:11:33 +00:00
}