Documentation ¶
Index ¶
- Constants
- func JSON(next echo.HandlerFunc) echo.HandlerFunc
- func ParseCollectionType(s string) (collection.SubjectCollection, error)
- func ParseEpTypeOptional(s string) (*episode.Type, error)
- func ParseID(s string) (model.CharacterID, error)
- func ParsePrivateMessageFolder(s string) (pm.FolderType, error)
- func ParseSubjectCategory(stype model.SubjectType, s string) (uint16, error)
- func ParseSubjectType(s string) (model.SubjectType, error)
- type CreatePersonalAccessToken
- type DeletePersonalAccessToken
- type IndexAddSubject
- type IndexBasicInfo
- type IndexSubjectInfo
- type PageQuery
- type PrivateMessageCreate
- type PrivateMessageDelete
- type PrivateMessageMarkRead
- 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 ParseCollectionType ¶ added in v0.30.3
func ParseCollectionType(s string) (collection.SubjectCollection, error)
func ParseEpTypeOptional ¶ added in v0.30.3
func ParsePrivateMessageFolder ¶ added in v0.30.3
func ParsePrivateMessageFolder(s string) (pm.FolderType, error)
func ParseSubjectCategory ¶ added in v0.34.0
func ParseSubjectCategory(stype model.SubjectType, s string) (uint16, error)
func ParseSubjectType ¶ added in v0.30.3
func ParseSubjectType(s string) (model.SubjectType, error)
Types ¶
type CreatePersonalAccessToken ¶ added in v0.30.3
type DeletePersonalAccessToken ¶ added in v0.30.3
type DeletePersonalAccessToken struct {
ID uint32 `json:"id" validate:"required"`
}
type IndexAddSubject ¶ added in v0.30.3
type IndexAddSubject struct { SubjectID model.SubjectID `json:"subject_id"` *IndexSubjectInfo }
type IndexBasicInfo ¶ added in v0.30.3
type IndexSubjectInfo ¶ added in v0.30.3
type PageQuery ¶ added in v0.30.3
func GetPageQuery ¶ added in v0.30.3
type PrivateMessageCreate ¶ added in v0.30.3
type PrivateMessageCreate struct { Title string `json:"title" validate:"required,gt=0,lte=100"` Content string `json:"content" validate:"required,gt=0,lte=1000"` RelatedID *uint32 `json:"related_id" validate:"omitempty,gt=0"` ReceiverIDs []uint32 `json:"receiver_ids" validate:"required,gt=0,dive,gt=0"` }
type PrivateMessageDelete ¶ added in v0.30.3
type PrivateMessageDelete struct {
IDs []uint32 `json:"ids" validate:"required,gt=0,dive,gt=0"`
}
type PrivateMessageMarkRead ¶ added in v0.30.3
type PrivateMessageMarkRead struct {
ID uint32 `json:"id" validate:"required,gt=0"`
}
type SubjectEpisodeCollectionPatch ¶ added in v0.30.3
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[collection.SubjectCollection] `json:"type"` Rate null.Uint8 `json:"rate"` Private null.Bool `json:"private"` }
func (*SubjectEpisodeCollectionPatch) Validate ¶ added in v0.30.3
func (v *SubjectEpisodeCollectionPatch) Validate() error
type UpdateEpisodeCollection ¶ added in v0.30.3
type UpdateEpisodeCollection struct {
Type uint8 `json:"type"`
}
type UpdateUserEpisodeCollection ¶ added in v0.30.3
type UpdateUserEpisodeCollection struct {
Type collection.EpisodeCollection `json:"type"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.