model

package
v0.0.0-...-31a4683 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationTypeFollowed  = "FOLLOWED"
	NotificationTypeReplied   = "REPLIED"
	NotificationTypeSubscribe = "SUBSCRIBE"
	NotificationTypeNewMember = "NEW_MEMBER"
	NotificationTypeMail      = "MAIL"
	NotificationTypeMassMail  = "MASS_MAIL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdomonishData

type AdomonishData struct {
	Title   string `json:"title"`
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type AllCharacterListItem

type AllCharacterListItem struct {
	Id          int      `json:"id"`
	Name        string   `json:"name"`
	Nickname    string   `json:"nickname"`
	Summary     string   `json:"summary"`
	ListImage   string   `json:"listImage"`
	Tags        []string `json:"tags"`
	IsFollowing *bool    `json:"isFollowing,omitempty"`
	IsFollowed  *bool    `json:"isFollowed,omitempty"`
	IsMuting    *bool    `json:"isMuting,omitempty"`
	IsBlocking  *bool    `json:"isBlocking,omitempty"`
}

type Announcement

type Announcement struct {
	AnnouncementBase
	Title   string `json:"title"`
	Content string `json:"content"`
}

type AnnouncementBase

type AnnouncementBase struct {
	Id          int       `json:"id"`
	Type        string    `json:"type"`
	AnnouncedAt time.Time `json:"announcedAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

type AnnouncementData

type AnnouncementData struct {
	Type     string `json:"type"`
	Title    string `json:"title"`
	Overview string `json:"overview"`
	Content  string `json:"content"`
}

type AnnouncementEditData

type AnnouncementEditData struct {
	AnnouncementData
	AnnouncedAt time.Time `json:"announcedAt"`
}

type AnnouncementEditDataUpdate

type AnnouncementEditDataUpdate struct {
	AnnouncementData
	SilentUpdate bool `json:"silentUpdate"`
}

type AnnouncementGuideData

type AnnouncementGuideData struct {
	Id    int    `json:"id"`
	Title string `json:"title"`
}

type AnnouncementOverview

type AnnouncementOverview struct {
	AnnouncementBase
	Overview string `json:"overview"`
}

type BanData

type BanData struct {
	Reason string `json:"reason"`
}

type CharacterEmailRegistratedData

type CharacterEmailRegistratedData struct {
	Id    int    `json:"id"`
	Email string `json:"email"`
}

type CharacterIconLayerGroup

type CharacterIconLayerGroup struct {
	Id    int                      `json:"id"`
	Name  string                   `json:"name"`
	Items []CharacterIconLayerItem `json:"items"`
}

type CharacterIconLayerGroupOrder

type CharacterIconLayerGroupOrder struct {
	LayerGroup int `json:"layerGroup"`
	Order      int `json:"order"`
}

type CharacterIconLayerItem

type CharacterIconLayerItem struct {
	CharacterIconLayerItemEditData
	Id int `json:"id"`
}

type CharacterIconLayerItemEditData

type CharacterIconLayerItemEditData struct {
	Path string `json:"path"`
}

type CharacterIconLayeringGroup

type CharacterIconLayeringGroup struct {
	CharacterIconLayeringGroupOverview
	Layers    []CharacterIconLayerGroup            `json:"layers"`
	Processes []CharacterIconProcessSchemaEditData `json:"processes"`
}

type CharacterIconLayeringGroupOverview

type CharacterIconLayeringGroupOverview struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type CharacterIconProcessSchema

type CharacterIconProcessSchema struct {
	Name   string  `json:"name"`
	X      float64 `json:"x"`
	Y      float64 `json:"y"`
	Rotate float64 `json:"rotate"` // degree
	Scale  float64 `json:"scale"`  // percent
}

type CharacterIconProcessSchemaEditData

type CharacterIconProcessSchemaEditData struct {
	CharacterIconProcessSchema
	Id int `json:"id"`
}

type CharacterOtherSettings

type CharacterOtherSettings struct {
	Webhook struct {
		Url       string `json:"url"`
		Followed  bool   `json:"followed"`
		Replied   bool   `json:"replied"`
		Subscribe bool   `json:"subscribe"`
		NewMember bool   `json:"newMember"`
		Mail      bool   `json:"mail"`
	} `json:"webhook"`
	Notification struct {
		Followed  bool `json:"followed"`
		Replied   bool `json:"replied"`
		Subscribe bool `json:"subscribe"`
		NewMember bool `json:"newMember"`
		Mail      bool `json:"mail"`
	} `json:"notification"`
}

type CharacterOtherSettingsState

type CharacterOtherSettingsState struct {
	Email        *string `json:"email"`
	LinkedStates struct {
		Twitter bool `json:"twitter"`
		Google  bool `json:"google"`
	} `json:"linkedStates"`
	CharacterOtherSettings
}

type CharacterOverview

type CharacterOverview struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Mainicon string `json:"mainicon"`
}

type CharacterSuggestion

type CharacterSuggestion struct {
	Id   int    `json:"id"`
	Text string `json:"text"`
}

type CharacterSuggestionData

type CharacterSuggestionData struct {
	Id   int
	Name string
}

func (*CharacterSuggestionData) ToDomain

type CharacterSuggestions

type CharacterSuggestions []CharacterSuggestion

type CharacterSuggestionsData

type CharacterSuggestionsData []CharacterSuggestionData

func (*CharacterSuggestionsData) ToDomain

type Diary

type Diary struct {
	DiaryOverview
	ExistingDiaries []int  `json:"existingDiaries"`
	Diary           string `json:"diary"`
	Nth             int    `json:"nth"`
}

type DiaryEditData

type DiaryEditData struct {
	Title           string   `json:"title"`
	Diary           string   `json:"diary"`
	SelectableIcons []string `json:"selectableIcons"`
}

type DiaryOverview

type DiaryOverview struct {
	Author CharacterOverview `json:"author"`
	Title  string            `json:"title"`
}

type FollowedNotification

type FollowedNotification struct {
	NotificationBase
	FollowedNotificationValue
}

type FollowedNotificationValue

type FollowedNotificationValue struct {
	Character CharacterOverview `json:"character"`
}

type Forum

type Forum struct {
	Id             int     `json:"id"`
	Title          string  `json:"title"`
	Summary        string  `json:"summary"`
	Guide          string  `json:"guide"`
	ForcedPostType *string `json:"forcedPostType"`
}

type ForumCreateData

type ForumCreateData struct {
	Title         string  `json:"title"`
	Summary       string  `json:"summary"`
	Guide         string  `json:"guide"`
	ForcePostType *string `json:"forcePostType"`
}

type ForumGroup

type ForumGroup struct {
	Id     int             `json:"id"`
	Title  string          `json:"title"`
	Forums []ForumOverview `json:"forums"`
}

type ForumOverview

type ForumOverview struct {
	Id       int                    `json:"id"`
	Title    string                 `json:"title"`
	Summary  string                 `json:"summary"`
	LastPost *ForumOverviewLastPost `json:"lastPost"`
}

type ForumOverviewLastPost

type ForumOverviewLastPost struct {
	Topic struct {
		Id    int    `json:"id"`
		Title string `json:"title"`
	} `json:"topic"`
	Sender struct {
		PostType  string `json:"postType"`
		Name      string `json:"name"`
		Character *int   `json:"character"`
	} `json:"sender"`
	PostedAt time.Time `json:"postedAt"`
}

type ForumSender

type ForumSender struct {
	PostType   string  `json:"postType"`
	Name       *string `json:"name"`
	Character  *int    `json:"character"`
	Identifier *string `json:"identifier"`
}

type ForumTopic

type ForumTopic struct {
	Id            int         `json:"id"`
	Forum         int         `json:"forum"`
	Sender        ForumSender `json:"sender"`
	Title         string      `json:"title"`
	Status        string      `json:"status"`
	ForcePostType *string     `json:"forcePostType"`
}

type ForumTopicCreateData

type ForumTopicCreateData struct {
	Title        string  `json:"title"`
	Name         *string `json:"name"`
	Content      string  `json:"content"`
	EditPassword *string `json:"editPassword"`
	PostType     string  `json:"postType"`
}

type ForumTopicEditData

type ForumTopicEditData struct {
	Title        string  `json:"title"`
	Status       string  `json:"status"`
	PostType     string  `json:"postType"`
	EditPassword *string `json:"editPassword"`
}

type ForumTopicOverview

type ForumTopicOverview struct {
	Id           int         `json:"id"`
	Sender       ForumSender `json:"sender"`
	Title        string      `json:"title"`
	Status       string      `json:"status"`
	Posts        int         `json:"posts"`
	CreatedAt    time.Time   `json:"createdAt"`
	LastPostedAt time.Time   `json:"lastPostedAt"`
	IsPinned     bool        `json:"isPinned"`
}

type ForumTopicPost

type ForumTopicPost struct {
	Id        int                      `json:"id"`
	Sender    ForumSender              `json:"sender"`
	Content   string                   `json:"content"`
	PostedAt  time.Time                `json:"postedAt"`
	UpdatedAt *time.Time               `json:"updatedAt"`
	Revisions []ForumTopicPostRevision `json:"revisions"`
	Reactions []ForumTopicPostReaction `json:"reactions"`
}

type ForumTopicPostReaction

type ForumTopicPostReaction struct {
	Emoji         string `json:"emoji"`
	ReactedCounts int    `json:"reactedCounts"`
	IsReacted     bool   `json:"isReacted"`
}

type ForumTopicPostReviseData

type ForumTopicPostReviseData struct {
	Content      string  `json:"content"`
	PostType     string  `json:"postType"`
	EditPassword *string `json:"editPassword"`
}

type ForumTopicPostRevision

type ForumTopicPostRevision struct {
	Content  string    `json:"content"`
	PostedAt time.Time `json:"postedAt"`
}

type ForumTopicPostRevisionHistory

type ForumTopicPostRevisionHistory struct {
	Content   string    `json:"content"`
	RevisedAt time.Time `json:"revisedAt"`
}

type ForumTopicPostSendData

type ForumTopicPostSendData struct {
	PostType     string  `json:"postType"`
	Name         *string `json:"name"`
	Content      string  `json:"content"`
	EditPassword *string `json:"editPassword"`
}

type GeneralCharacterListItem

type GeneralCharacterListItem struct {
	Id          int      `json:"id"`
	Name        string   `json:"name"`
	Nickname    string   `json:"nickname"`
	Summary     string   `json:"summary"`
	Mainicon    string   `json:"mainicon"`
	Tags        []string `json:"tags"`
	IsFollowing *bool    `json:"isFollowing,omitempty"`
	IsFollowed  *bool    `json:"isFollowed,omitempty"`
	IsMuting    *bool    `json:"isMuting,omitempty"`
	IsBlocking  *bool    `json:"isBlocking,omitempty"`
}

type HomeData

type HomeData struct {
	Nickname string `json:"nickname"`
}

type Icon

type Icon struct {
	Path string `json:"path"`
}

type Inquiry

type Inquiry struct {
	Id        int                `json:"id"`
	Character *CharacterOverview `json:"character"`
	Content   string             `json:"content"`
	Resolved  bool               `json:"resolved"`
	PostedAt  time.Time          `json:"postedAt"`
}

type ListOverview

type ListOverview struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type MailBase

type MailBase struct {
	Id        int       `json:"id"`
	Title     string    `json:"title"`
	Message   string    `json:"message"`
	Timestamp time.Time `json:"timestamp"`
	Read      bool      `json:"read"`
}

type MailNotification

type MailNotification struct {
	NotificationBase
	MailNotificationValue
}

type MailNotificationValue

type MailNotificationValue struct {
	Character struct {
		Id       *int    `json:"id"`
		Name     string  `json:"name"`
		Mainicon *string `json:"mainicon"`
	} `json:"character"`
	Mail struct {
		Id    int    `json:"id"`
		Title string `json:"title"`
	} `json:"mail"`
}

type MassMailNotification

type MassMailNotification struct {
	NotificationBase
	MassMailNotificationValue
}

type MassMailNotificationValue

type MassMailNotificationValue struct {
	Mail struct {
		Id    int    `json:"id"`
		Name  string `json:"name"`
		Title string `json:"title"`
	} `json:"mail"`
}

type NewMemberNotification

type NewMemberNotification struct {
	NotificationBase
	NewMemberNotificationValue
}

type NewMemberNotificationValue

type NewMemberNotificationValue struct {
	Character CharacterOverview `json:"character"`
	Room      RoomOverview      `json:"room"`
}

type Notification

type Notification interface {
	// contains filtered or unexported methods
}

type NotificationBase

type NotificationBase struct {
	Id        int       `json:"id"`
	Type      string    `json:"type"`
	Timestamp time.Time `json:"timestamp"`
}

type Profile

type Profile struct {
	Id              int                `json:"id"`
	Name            string             `json:"name"`
	Nickname        string             `json:"nickname"`
	Summary         string             `json:"summary"`
	Profile         string             `json:"profile"`
	ProfileImages   []string           `json:"profileImages"`
	Tags            []string           `json:"tags"`
	FollowingNumber int                `json:"followingNumber"`
	FollowedNumber  int                `json:"followedNumber"`
	Icons           []Icon             `json:"icons"`
	IsFollowing     bool               `json:"isFollowing"`
	IsFollowed      bool               `json:"isFollowed"`
	IsMuting        bool               `json:"isMuting"`
	IsBlocking      bool               `json:"isBlocking"`
	IsBlocked       bool               `json:"isBlocked"`
	ExistingDiaries []ProfileDiaryData `json:"existingDiaries"`
}

type ProfileDiaryData

type ProfileDiaryData struct {
	Nth   int    `json:"nth"`
	Title string `json:"title"`
}

type ProfileEditData

type ProfileEditData struct {
	Name      string   `json:"name"`
	Nickname  string   `json:"nickname"`
	Summary   string   `json:"summary"`
	Profile   string   `json:"profile"`
	Mainicon  string   `json:"mainicon"`
	ListImage string   `json:"listImage"`
	Tags      []string `json:"tags"`
}

type ProfileImage

type ProfileImage struct {
	Path string `json:"path"`
}

type ProhibitionRelatedData

type ProhibitionRelatedData struct {
	Id        int       `json:"id"`
	Type      string    `json:"type"`
	Reason    string    `json:"reason"`
	Timestamp time.Time `json:"timestamp"`
}

type ReceivedMail

type ReceivedMail struct {
	MailBase
	Sender struct {
		Id   *int   `json:"id"`
		Name string `json:"name"`
	} `json:"sender"`
}

type RepliedNotification

type RepliedNotification struct {
	NotificationBase
	RepliedNotificationValue
}

type RepliedNotificationValue

type RepliedNotificationValue struct {
	Character CharacterOverview `json:"character"`
	Room      RoomOverview      `json:"room"`
	Message   struct {
		ReferRoot int    `json:"referRoot"`
		Message   string `json:"message"`
	} `json:"message"`
}

type RomeMemberWithRoles

type RomeMemberWithRoles struct {
	CharacterOverview
	Roles []RoomRoleOverview `json:"roles"`
}

type Room

type Room struct {
	Title               string   `json:"title"`
	Summary             string   `json:"summary"`
	Description         string   `json:"description"`
	Tags                []string `json:"tags"`
	Searchable          bool     `json:"searchable"`
	AllowRecommendation bool     `json:"allowRecommendation"`
	ChildrenReferable   bool     `json:"childrenReferable"`
	ParentRoom          *int     `json:"parentRoom"`
}

type RoomBanState

type RoomBanState struct {
	Banned   CharacterOverview `json:"banned"`
	Banner   CharacterOverview `json:"banner"`
	BannedAt time.Time         `json:"bannedAt"`
}

type RoomDetailData

type RoomDetailData struct {
	Room
	Official     bool              `json:"official"`
	UpdatedAt    time.Time         `json:"updatedAt"`
	MembersCount int               `json:"membersCount"`
	Master       CharacterOverview `json:"master"`
}

type RoomInitialData

type RoomInitialData struct {
	Title           string               `json:"title"`
	Relations       RoomRelations        `json:"relations"`
	Permissions     RoomMemberPermission `json:"permissions"`
	SubscribeStates RoomSubscribeStates  `json:"subscribeStates"`
	Banned          bool                 `json:"banned"`
}

type RoomInviteState

type RoomInviteState struct {
	Invited   CharacterOverview `json:"invited"`
	Inviter   CharacterOverview `json:"inviter"`
	InvitedAt time.Time         `json:"invitedAt"`
}

type RoomListItem

type RoomListItem struct {
	Id     int `json:"id"`
	Master struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	} `json:"master"`
	Title           string              `json:"title"`
	Summary         string              `json:"summary"`
	Tags            []string            `json:"tags"`
	Official        bool                `json:"official"`
	MessagesCount   int                 `json:"messagesCount"`
	MembersCount    int                 `json:"membersCount"`
	LastUpdate      time.Time           `json:"lastUpdate"`
	PostsPerDay     float64             `json:"postsPerDay"`
	FollowedMembers []CharacterOverview `json:"followedMembers,omitempty"`
}

type RoomMemberPermission

type RoomMemberPermission struct {
	Write              bool `json:"write"`
	Ban                bool `json:"ban"`
	Invite             bool `json:"invite"`
	UseReply           bool `json:"useReply"`
	UseSecret          bool `json:"useSecret"`
	DeleteOtherMessage bool `json:"deleteOtherMessage"`
	CreateChildrenRoom bool `json:"createChildrenRoom"`
}

type RoomMessage

type RoomMessage struct {
	Id              int          `json:"id"`
	Character       int          `json:"character"`
	Refer           *int         `json:"refer"`
	ReferRoot       *int         `json:"referRoot"`
	Secret          bool         `json:"secret"`
	Icon            *string      `json:"icon"`
	Name            string       `json:"name"`
	Message         string       `json:"message"`
	RepliedCount    int          `json:"repliedCount"`
	PostedAt        time.Time    `json:"postedAt"`
	ReplyPermission string       `json:"replyPermission"`
	Replyable       bool         `json:"replyable"`
	Room            RoomOverview `json:"room"`
	Recipients      []struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	} `json:"recipients"`
}

type RoomMessageEditRequiredData

type RoomMessageEditRequiredData struct {
	Character struct {
		Name string `json:"name"`
	} `json:"character"`
	Icons        []Icon                         `json:"icons"`
	Lists        []ListOverview                 `json:"lists"`
	FetchConfigs []RoomMessageFetchConfigWithId `json:"fetchConfigs"`
}

type RoomMessageFetchConfig

type RoomMessageFetchConfig struct {
	Name         string  `json:"name"`
	Category     string  `json:"category"`
	Room         *int    `json:"room"`
	Search       *string `json:"search"`
	ReferRoot    *int    `json:"referRoot"`
	List         *int    `json:"list"`
	Character    *int    `json:"character"`
	RelateFilter *bool   `json:"relateFilter"`
	Children     *bool   `json:"children"`
}

type RoomMessageFetchConfigOrder

type RoomMessageFetchConfigOrder struct {
	Config int `json:"config"`
	Order  int `json:"order"`
}

type RoomMessageFetchConfigWithId

type RoomMessageFetchConfigWithId struct {
	Id int `json:"id"`
	RoomMessageFetchConfig
}

type RoomMessageRetrieveSettings

type RoomMessageRetrieveSettings struct {
	RangeType         string
	BasePoint         int
	FetchNumber       int
	Category          string
	Room              *int
	ReferRoot         *int
	Search            *string
	ListId            *int
	TargetCharacterId *int
	RelateFilter      bool
	Children          bool
}

type RoomNotificationRelatedData

type RoomNotificationRelatedData struct {
	RoomId            int
	RoomTitle         string
	UserId            int
	UserName          string
	ReferRoot         int
	RepliedWebhooks   []string
	SubscribeWebhooks []string
}

type RoomOverview

type RoomOverview struct {
	Id    int    `json:"id"`
	Title string `json:"title"`
}

type RoomPostMessage

type RoomPostMessage struct {
	Room            int    `json:"room"`
	Icon            string `json:"icon"`
	Name            string `json:"name"`
	Message         string `json:"message"`
	Refer           *int   `json:"refer"`
	DirectReply     *int   `json:"directReply"`
	ReplyPermission string `json:"replyPermission"`
	Secret          bool   `json:"secret"`
}

type RoomRelations

type RoomRelations struct {
	Parent   *RoomOverview  `json:"parent"`
	Siblings []RoomOverview `json:"siblings"`
	Children []RoomOverview `json:"children"`
}

type RoomRole

type RoomRole struct {
	Id       int    `json:"id"`
	Priority int    `json:"priority"`
	Name     string `json:"name"`
	Type     string `json:"type"`
	RoomRolePermission
}

type RoomRoleOverview

type RoomRoleOverview struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

type RoomRolePermission

type RoomRolePermission struct {
	Write              *bool `json:"write"`
	Ban                *bool `json:"ban"`
	Invite             *bool `json:"invite"`
	UseReply           *bool `json:"useReply"`
	UseSecret          *bool `json:"useSecret"`
	DeleteOtherMessage *bool `json:"deleteOtherMessage"`
	CreateChildrenRoom *bool `json:"createChildrenRoom"`
}

type RoomRolePriority

type RoomRolePriority struct {
	Role     int `json:"Role"`
	Priority int `json:"Priority"`
}

type RoomSearchOptions

type RoomSearchOptions struct {
	Title        string   `json:"title"`
	Tags         []string `json:"tags"`
	ExcludedTags []string `json:"excludedTags"`
	Description  string   `json:"description"`
	Order        string   `json:"order"`
	Sort         string   `json:"sort"`
	Participant  *string  `json:"participant"`
	Offset       int      `json:"offset"`
	Limit        int      `json:"limit"`
}

type RoomSubscribeStates

type RoomSubscribeStates struct {
	Message   bool `json:"message"`
	NewMember bool `json:"newMember"`
}

type SentMail

type SentMail struct {
	MailBase
	Receiver struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	} `json:"receiver"`
}

type SubscribeNotification

type SubscribeNotification struct {
	NotificationBase
	SubscribeNotificationValue
}

type SubscribeNotificationValue

type SubscribeNotificationValue struct {
	Character CharacterOverview `json:"character"`
	Room      RoomOverview      `json:"room"`
	Message   struct {
		Message string `json:"message"`
	} `json:"message"`
}

type UnbanData

type UnbanData struct {
	Reason string `json:"reason"`
}

type UploadedImage

type UploadedImage struct {
	Id         int       `json:"id"`
	Path       string    `json:"path"`
	UploadedAt time.Time `json:"uploadedAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL