2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_schema/src/source/moderator.rs
|
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
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type ModFeaturePost struct {
|
|
|
|
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"`
|
|
|
|
Featured bool `json:"featured" url:"featured,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
|
|
|
IsFeaturedCommunity bool `json:"is_featured_community" url:"is_featured_community,omitempty"`
|
|
|
|
}
|
|
|
|
type ModFeaturePostForm struct {
|
|
|
|
ModPersonID int `json:"mod_person_id" url:"mod_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Featured bool `json:"featured" url:"featured,omitempty"`
|
|
|
|
IsFeaturedCommunity bool `json:"is_featured_community" url:"is_featured_community,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
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type AdminPurgePerson struct {
|
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgePersonForm struct {
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgeCommunity struct {
|
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgeCommunityForm struct {
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgePost struct {
|
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgePostForm struct {
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
CommunityID int `json:"community_id" url:"community_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgeComment struct {
|
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
When LemmyTime `json:"when_" url:"when_,omitempty"`
|
|
|
|
}
|
|
|
|
type AdminPurgeCommentForm struct {
|
|
|
|
AdminPersonID int `json:"admin_person_id" url:"admin_person_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Reason Optional[string] `json:"reason" url:"reason,omitempty"`
|
|
|
|
}
|