Documentation ¶
Index ¶
- type CollectPrivacy
- type EpisodeCollection
- type Subject
- func (s *Subject) Comment() string
- func (s *Subject) Eps() uint32
- func (s *Subject) MakePrivate()
- func (s *Subject) MakePublic()
- func (s *Subject) Privacy() CollectPrivacy
- func (s *Subject) Rate() uint8
- func (s *Subject) ShadowBan(v bool)
- func (s *Subject) Subject() model.SubjectID
- func (s *Subject) Tags() []string
- func (s *Subject) TypeID() SubjectCollection
- func (s *Subject) UpdateComment(comment string) error
- func (s *Subject) UpdateEps(v uint32)
- func (s *Subject) UpdateRate(r uint8, state SubjectCollection) error
- func (s *Subject) UpdateTags(tags []string) error
- func (s *Subject) UpdateType(r SubjectCollection)
- func (s *Subject) UpdateVols(v uint32)
- func (s *Subject) User() model.UserID
- func (s *Subject) Vols() uint32
- type SubjectCollection
- type UserEpisodeCollection
- type UserSubjectCollection
- type UserSubjectEpisodesCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectPrivacy ¶
type CollectPrivacy uint8
const ( // CollectPrivacyNone 默认公开收藏。 CollectPrivacyNone CollectPrivacy = 0 // CollectPrivacySelf 私有收藏,正常计入评分。 CollectPrivacySelf CollectPrivacy = 1 // CollectPrivacyBan Shadow Ban, 显示为私有收藏,不计入评分。 CollectPrivacyBan CollectPrivacy = 2 )
type EpisodeCollection ¶
type EpisodeCollection uint8
const ( EpisodeCollectionNone EpisodeCollection = 0 // 撤消/删除 EpisodeCollectionAll EpisodeCollection = 0 // 全部 EpisodeCollectionWish EpisodeCollection = 1 // 想看 EpisodeCollectionDone EpisodeCollection = 2 // 看过 EpisodeCollectionDropped EpisodeCollection = 3 // 抛弃 )
func (*EpisodeCollection) UnmarshalJSON ¶
func (s *EpisodeCollection) UnmarshalJSON(bytes []byte) error
type Subject ¶
type Subject struct {
// contains filtered or unexported fields
}
func NewEmptySubjectCollection ¶ added in v0.32.9
func NewSubjectCollection ¶
func (*Subject) MakePrivate ¶
func (s *Subject) MakePrivate()
func (*Subject) MakePublic ¶
func (s *Subject) MakePublic()
func (*Subject) Privacy ¶
func (s *Subject) Privacy() CollectPrivacy
func (*Subject) TypeID ¶
func (s *Subject) TypeID() SubjectCollection
func (*Subject) UpdateComment ¶
func (*Subject) UpdateRate ¶
func (s *Subject) UpdateRate(r uint8, state SubjectCollection) error
func (*Subject) UpdateTags ¶
func (*Subject) UpdateType ¶
func (s *Subject) UpdateType(r SubjectCollection)
func (*Subject) UpdateVols ¶
type SubjectCollection ¶
type SubjectCollection uint8
const ( SubjectCollectionAll SubjectCollection = 0 // 全部 SubjectCollectionWish SubjectCollection = 1 // 想看 SubjectCollectionDone SubjectCollection = 2 // 看过 SubjectCollectionDoing SubjectCollection = 3 // 在看 SubjectCollectionOnHold SubjectCollection = 4 // 搁置 SubjectCollectionDropped SubjectCollection = 5 // 抛弃 )
func (*SubjectCollection) UnmarshalJSON ¶
func (s *SubjectCollection) UnmarshalJSON(bytes []byte) error
type UserEpisodeCollection ¶
type UserEpisodeCollection struct { ID model.EpisodeID Type EpisodeCollection }
type UserSubjectCollection ¶
type UserSubjectEpisodesCollection ¶
type UserSubjectEpisodesCollection map[model.EpisodeID]UserEpisodeCollection
Click to show internal directories.
Click to hide internal directories.