2023-01-07 22:45:01 +00:00
|
|
|
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type CommentAggregates struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommunityAggregates struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type PersonAggregates struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type PostAggregates struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type SiteAggregates struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|