Documentation ¶
Index ¶
- Constants
- func JSON(c *fiber.Ctx) error
- func ParseCharacterID(s string) (model.CharacterID, error)
- func ParseCollectionType(s string) (model.SubjectCollection, error)
- func ParseEpTypeOptional(s string) (*model.EpType, error)
- func ParseEpisodeID(s string) (model.EpisodeID, error)
- func ParseIndexID(s string) (model.IndexID, error)
- func ParsePersonID(s string) (model.PersonID, error)
- func ParseSubjectID(s string) (model.SubjectID, error)
- func ParseSubjectType(s string) (model.SubjectType, error)
- func ParseTopicID(s string) (model.TopicID, error)
- type CreatePersonalAccessToken
- type DeletePersonalAccessToken
- type IndexAddSubject
- type IndexBasicInfo
- type IndexSubjectInfo
- type PageQuery
- type SubjectEpisodeCollectionPatch
- type UpdateEpisodeCollection
- type UpdateUserEpisodeCollection
- type UserLogin
Constants ¶
View Source
const DefaultMaxPageLimit = 100
View Source
const DefaultPageLimit = 30
View Source
const EpisodeDefaultLimit = 100
View Source
const EpisodeMaxLimit = 1000
Variables ¶
This section is empty.
Functions ¶
func ParseCharacterID ¶ added in v0.22.1
func ParseCharacterID(s string) (model.CharacterID, error)
func ParseCollectionType ¶ added in v0.22.1
func ParseCollectionType(s string) (model.SubjectCollection, error)
func ParseEpTypeOptional ¶ added in v0.22.4
func ParseSubjectType ¶ added in v0.22.1
func ParseSubjectType(s string) (model.SubjectType, error)
Types ¶
type CreatePersonalAccessToken ¶ added in v0.18.0
type DeletePersonalAccessToken ¶ added in v0.18.0
type DeletePersonalAccessToken struct {
ID uint32 `json:"id" validate:"required"`
}
type IndexAddSubject ¶ added in v0.28.0
type IndexAddSubject struct { SubjectID model.SubjectID `json:"subject_id"` *IndexSubjectInfo }
type IndexBasicInfo ¶ added in v0.28.0
type IndexSubjectInfo ¶ added in v0.28.0
type PageQuery ¶ added in v0.22.2
func GetPageQuery ¶ added in v0.22.2
type SubjectEpisodeCollectionPatch ¶ added in v0.23.8
type SubjectEpisodeCollectionPatch struct { Comment null.String `json:"comment"` Tags []string `json:"tags"` VolStatus null.Uint32 `json:"vol_status" doc:"只能用于书籍条目"` EpStatus null.Uint32 `json:"ep_status" doc:"只能用于书籍条目"` Type null.Null[model.SubjectCollection] `json:"type"` Rate null.Uint8 `json:"rate"` Private null.Bool `json:"private"` }
func (SubjectEpisodeCollectionPatch) Validate ¶ added in v0.23.8
func (v SubjectEpisodeCollectionPatch) Validate() error
type UpdateEpisodeCollection ¶ added in v0.23.8
type UpdateEpisodeCollection struct {
Type uint8 `json:"type"`
}
type UpdateUserEpisodeCollection ¶ added in v0.27.0
type UpdateUserEpisodeCollection struct {
Type model.EpisodeCollection `json:"type"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.