2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_schema/src/lib.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 SortType string
|
|
|
|
|
|
|
|
const (
|
2023-01-05 21:02:11 +00:00
|
|
|
SortTypeActive SortType = "Active"
|
|
|
|
SortTypeHot SortType = "Hot"
|
|
|
|
SortTypeNew SortType = "New"
|
2023-01-31 03:38:57 +00:00
|
|
|
SortTypeOld SortType = "Old"
|
2023-01-05 21:02:11 +00:00
|
|
|
SortTypeTopDay SortType = "TopDay"
|
|
|
|
SortTypeTopWeek SortType = "TopWeek"
|
|
|
|
SortTypeTopMonth SortType = "TopMonth"
|
|
|
|
SortTypeTopYear SortType = "TopYear"
|
|
|
|
SortTypeTopAll SortType = "TopAll"
|
|
|
|
SortTypeMostComments SortType = "MostComments"
|
|
|
|
SortTypeNewComments SortType = "NewComments"
|
2023-01-05 20:51:45 +00:00
|
|
|
)
|
|
|
|
|
2023-01-31 03:38:57 +00:00
|
|
|
type CommentSortType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
CommentSortTypeHot CommentSortType = "Hot"
|
|
|
|
CommentSortTypeTop CommentSortType = "Top"
|
|
|
|
CommentSortTypeNew CommentSortType = "New"
|
|
|
|
CommentSortTypeOld CommentSortType = "Old"
|
|
|
|
)
|
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
type ListingType string
|
|
|
|
|
|
|
|
const (
|
2023-01-05 21:02:11 +00:00
|
|
|
ListingTypeAll ListingType = "All"
|
|
|
|
ListingTypeLocal ListingType = "Local"
|
|
|
|
ListingTypeSubscribed ListingType = "Subscribed"
|
2023-01-05 20:51:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type SearchType string
|
|
|
|
|
|
|
|
const (
|
2023-01-05 21:02:11 +00:00
|
|
|
SearchTypeAll SearchType = "All"
|
|
|
|
SearchTypeComments SearchType = "Comments"
|
|
|
|
SearchTypePosts SearchType = "Posts"
|
|
|
|
SearchTypeCommunities SearchType = "Communities"
|
|
|
|
SearchTypeUsers SearchType = "Users"
|
|
|
|
SearchTypeUrl SearchType = "Url"
|
2023-01-05 20:51:45 +00:00
|
|
|
)
|
2023-01-31 03:38:57 +00:00
|
|
|
|
|
|
|
type SubscribedType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
SubscribedTypeSubscribed SubscribedType = "Subscribed"
|
|
|
|
SubscribedTypeNotSubscribed SubscribedType = "NotSubscribed"
|
|
|
|
SubscribedTypePending SubscribedType = "Pending"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ModlogActionType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
ModlogActionTypeAll ModlogActionType = "All"
|
|
|
|
ModlogActionTypeModRemovePost ModlogActionType = "ModRemovePost"
|
|
|
|
ModlogActionTypeModLockPost ModlogActionType = "ModLockPost"
|
|
|
|
ModlogActionTypeModFeaturePost ModlogActionType = "ModFeaturePost"
|
|
|
|
ModlogActionTypeModRemoveComment ModlogActionType = "ModRemoveComment"
|
|
|
|
ModlogActionTypeModRemoveCommunity ModlogActionType = "ModRemoveCommunity"
|
|
|
|
ModlogActionTypeModBanFromCommunity ModlogActionType = "ModBanFromCommunity"
|
|
|
|
ModlogActionTypeModAddCommunity ModlogActionType = "ModAddCommunity"
|
|
|
|
ModlogActionTypeModTransferCommunity ModlogActionType = "ModTransferCommunity"
|
|
|
|
ModlogActionTypeModAdd ModlogActionType = "ModAdd"
|
|
|
|
ModlogActionTypeModBan ModlogActionType = "ModBan"
|
|
|
|
ModlogActionTypeModHideCommunity ModlogActionType = "ModHideCommunity"
|
|
|
|
ModlogActionTypeAdminPurgePerson ModlogActionType = "AdminPurgePerson"
|
|
|
|
ModlogActionTypeAdminPurgeCommunity ModlogActionType = "AdminPurgeCommunity"
|
|
|
|
ModlogActionTypeAdminPurgePost ModlogActionType = "AdminPurgePost"
|
|
|
|
ModlogActionTypeAdminPurgeComment ModlogActionType = "AdminPurgeComment"
|
|
|
|
)
|
|
|
|
|
|
|
|
type PostFeatureType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
PostFeatureTypeLocal PostFeatureType = "Local"
|
|
|
|
PostFeatureTypeCommunity PostFeatureType = "Community"
|
|
|
|
)
|