2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_views_moderator/src/structs.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 ModAddCommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModAddCommunity ModAddCommunity `json:"mod_add_community" url:"mod_add_community,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
ModdedPerson PersonSafeAlias1 `json:"modded_person" url:"modded_person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModAddView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModAdd ModAdd `json:"mod_add" url:"mod_add,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
ModdedPerson PersonSafeAlias1 `json:"modded_person" url:"modded_person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBanFromCommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModBanFromCommunity ModBanFromCommunity `json:"mod_ban_from_community" url:"mod_ban_from_community,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
BannedPerson PersonSafeAlias1 `json:"banned_person" url:"banned_person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModBanView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModBan ModBan `json:"mod_ban" url:"mod_ban,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
BannedPerson PersonSafeAlias1 `json:"banned_person" url:"banned_person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModHideCommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModHideCommunity ModHideCommunity `json:"mod_hide_community" url:"mod_hide_community,omitempty"`
|
|
|
|
Admin PersonSafe `json:"admin" url:"admin,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModLockPostView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModLockPost ModLockPost `json:"mod_lock_post" url:"mod_lock_post,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveCommentView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModRemoveComment ModRemoveComment `json:"mod_remove_comment" url:"mod_remove_comment,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Comment Comment `json:"comment" url:"comment,omitempty"`
|
|
|
|
Commenter PersonSafeAlias1 `json:"commenter" url:"commenter,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemoveCommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModRemoveCommunity ModRemoveCommunity `json:"mod_remove_community" url:"mod_remove_community,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModRemovePostView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModRemovePost ModRemovePost `json:"mod_remove_post" url:"mod_remove_post,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModStickyPostView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModStickyPost ModStickyPost `json:"mod_sticky_post" url:"mod_sticky_post,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type ModTransferCommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ModTransferCommunity ModTransferCommunity `json:"mod_transfer_community" url:"mod_transfer_community,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
ModdedPerson PersonSafeAlias1 `json:"modded_person" url:"modded_person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|