55 lines
3.3 KiB
Go
55 lines
3.3 KiB
Go
package types
|
|
|
|
type CommentAggregates struct {
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
Score int64 `json:"score" url:"score,omitempty"`
|
|
Upvotes int64 `json:"upvotes" url:"upvotes,omitempty"`
|
|
Downvotes int64 `json:"downvotes" url:"downvotes,omitempty"`
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
}
|
|
type CommunityAggregates struct {
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
Subscribers int64 `json:"subscribers" url:"subscribers,omitempty"`
|
|
Posts int64 `json:"posts" url:"posts,omitempty"`
|
|
Comments int64 `json:"comments" url:"comments,omitempty"`
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
UsersActiveDay int64 `json:"users_active_day" url:"users_active_day,omitempty"`
|
|
UsersActiveWeek int64 `json:"users_active_week" url:"users_active_week,omitempty"`
|
|
UsersActiveMonth int64 `json:"users_active_month" url:"users_active_month,omitempty"`
|
|
UsersActiveHalfYear int64 `json:"users_active_half_year" url:"users_active_half_year,omitempty"`
|
|
}
|
|
type PersonAggregates struct {
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
PersonID int `json:"person_id" url:"person_id,omitempty"`
|
|
PostCount int64 `json:"post_count" url:"post_count,omitempty"`
|
|
PostScore int64 `json:"post_score" url:"post_score,omitempty"`
|
|
CommentCount int64 `json:"comment_count" url:"comment_count,omitempty"`
|
|
CommentScore int64 `json:"comment_score" url:"comment_score,omitempty"`
|
|
}
|
|
type PostAggregates struct {
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
Comments int64 `json:"comments" url:"comments,omitempty"`
|
|
Score int64 `json:"score" url:"score,omitempty"`
|
|
Upvotes int64 `json:"upvotes" url:"upvotes,omitempty"`
|
|
Downvotes int64 `json:"downvotes" url:"downvotes,omitempty"`
|
|
Stickied bool `json:"stickied" url:"stickied,omitempty"`
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
NewestCommentTimeNecro LemmyTime `json:"newest_comment_time_necro" url:"newest_comment_time_necro,omitempty"`
|
|
NewestCommentTime LemmyTime `json:"newest_comment_time" url:"newest_comment_time,omitempty"`
|
|
}
|
|
type SiteAggregates struct {
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
SiteID int32 `json:"site_id" url:"site_id,omitempty"`
|
|
Users int64 `json:"users" url:"users,omitempty"`
|
|
Posts int64 `json:"posts" url:"posts,omitempty"`
|
|
Comments int64 `json:"comments" url:"comments,omitempty"`
|
|
Communities int64 `json:"communities" url:"communities,omitempty"`
|
|
UsersActiveDay int64 `json:"users_active_day" url:"users_active_day,omitempty"`
|
|
UsersActiveWeek int64 `json:"users_active_week" url:"users_active_week,omitempty"`
|
|
UsersActiveMonth int64 `json:"users_active_month" url:"users_active_month,omitempty"`
|
|
UsersActiveHalfYear int64 `json:"users_active_half_year" url:"users_active_half_year,omitempty"`
|
|
}
|