user

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReqEpisodeCollectionBatch added in v0.23.8

type ReqEpisodeCollectionBatch struct {
	EpisodeID []model.EpisodeID       `json:"episode_id"`
	Type      model.EpisodeCollection `json:"type"`
}

func (ReqEpisodeCollectionBatch) Validate added in v0.23.8

func (r ReqEpisodeCollectionBatch) Validate() error

type ResUserEpisodeCollection added in v0.23.0

type ResUserEpisodeCollection struct {
	Episode res.Episode             `json:"episode"`
	Type    model.EpisodeCollection `json:"type"`
}

type User

type User struct {
	common.Common
	// contains filtered or unexported fields
}

func New

func New(
	common common.Common,
	p domain.PersonService,
	user domain.UserRepo,
	topic domain.TopicRepo,
	ctrl ctrl.Ctrl,
	collect domain.CollectionRepo,
	log *zap.Logger,
) (User, error)

func (User) Get

func (h User) Get(c *fiber.Ctx) error

func (User) GetAvatar

func (h User) GetAvatar(c *fiber.Ctx) error

func (User) GetCurrent

func (h User) GetCurrent(c *fiber.Ctx) error

func (User) GetEpisodeCollection added in v0.23.0

func (h User) GetEpisodeCollection(c *fiber.Ctx) error

func (User) GetSubjectCollection

func (h User) GetSubjectCollection(c *fiber.Ctx) error

func (User) GetSubjectEpisodeCollection added in v0.23.0

func (h User) GetSubjectEpisodeCollection(c *fiber.Ctx) error

GetSubjectEpisodeCollection return episodes with user's collection info.

func (User) ListSubjectCollection

func (h User) ListSubjectCollection(c *fiber.Ctx) error

func (User) PatchEpisodeCollectionBatch added in v0.23.8

func (h User) PatchEpisodeCollectionBatch(c *fiber.Ctx) error

PatchEpisodeCollectionBatch

/v0/users/-/collections/:subject_id/episodes"

func (User) PatchSubjectCollection added in v0.23.8

func (h User) PatchSubjectCollection(c *fiber.Ctx) error

func (User) PutEpisodeCollection added in v0.27.0

func (h User) PutEpisodeCollection(c *fiber.Ctx) error

PutEpisodeCollection

/v0/users/-/collections/-/episodes/:episode_id

Jump to

Keyboard shortcuts

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