Documentation ¶
Index ¶
- type ReqEpisodeCollectionBatch
- type ResUserEpisodeCollection
- type User
- func (h User) Get(c echo.Context) error
- func (h User) GetAvatar(c echo.Context) error
- func (h User) GetCurrent(c echo.Context) error
- func (h User) GetEpisodeCollection(c echo.Context) error
- func (h User) GetSubjectCollection(c echo.Context) error
- func (h User) GetSubjectEpisodeCollection(c echo.Context) error
- func (h User) ListSubjectCollection(c echo.Context) error
- func (h User) PatchEpisodeCollectionBatch(c echo.Context) error
- func (h User) PatchSubjectCollection(c echo.Context) error
- func (h User) PostSubjectCollection(c echo.Context) error
- func (h User) PutEpisodeCollection(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqEpisodeCollectionBatch ¶
type ReqEpisodeCollectionBatch struct { EpisodeID []model.EpisodeID `json:"episode_id"` Type collection.EpisodeCollection `json:"type"` }
func (ReqEpisodeCollectionBatch) Validate ¶
func (r ReqEpisodeCollectionBatch) Validate() error
type ResUserEpisodeCollection ¶
type ResUserEpisodeCollection struct { Episode res.Episode `json:"episode"` Type collection.EpisodeCollection `json:"type"` }
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (User) GetCurrent ¶
func (User) GetEpisodeCollection ¶
func (User) GetSubjectCollection ¶
func (User) GetSubjectEpisodeCollection ¶
GetSubjectEpisodeCollection return episodes with user's collection info.
func (User) ListSubjectCollection ¶
func (User) PatchEpisodeCollectionBatch ¶
PatchEpisodeCollectionBatch
/v0/users/-/collections/:subject_id/episodes"
func (User) PatchSubjectCollection ¶
func (User) PostSubjectCollection ¶ added in v0.32.9
func (User) PutEpisodeCollection ¶
PutEpisodeCollection
/v0/users/-/collections/-/episodes/:episode_id
Click to show internal directories.
Click to hide internal directories.