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 ModRemovePost struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemovePostForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModLockPost struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Locked Optional[bool] `json:"locked" url:"locked,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModLockPostForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Locked Optional[bool] `json:"locked" url:"locked,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModStickyPost struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Stickied Optional[bool] `json:"stickied" url:"stickied,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModStickyPostForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Stickied Optional[bool] `json:"stickied" url:"stickied,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveComment struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveCommentForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveCommunity struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveCommunityForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBanFromCommunity struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Banned Optional[bool] `json:"banned" url:"banned,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBanFromCommunityForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Banned Optional[bool] `json:"banned" url:"banned,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBan struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Banned Optional[bool] `json:"banned" url:"banned,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModHideCommunityForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
Hidden Optional[bool] `json:"hidden" url:"hidden,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModHideCommunity 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"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Hidden Optional[bool] `json:"hidden" url:"hidden,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBanForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
Banned Optional[bool] `json:"banned" url:"banned,omitempty"`
|
|
|
|
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModAddCommunity struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModAddCommunityForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModTransferCommunity struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModTransferCommunityForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModAdd struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModAddForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
OtherPersonID int `json:"other_person_id" url:"other_person_id,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|