handler

package
v0.29.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Handler

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

func New

func New(
	common common.Common,
	a domain.AuthService,
	r domain.RevisionRepo,
	g domain.GroupRepo,
	index domain.IndexRepo,
	cache cache.RedisCache,
	ctrl ctrl.Ctrl,
	captcha captcha.Manager,
	session session.Manager,
	rateLimit rate.Manager,
	search search.Handler,
	log *zap.Logger,
	engine frontend.TemplateEngine,
	oauth oauth.Manager,
) Handler

func (Handler) CreatePersonalAccessToken added in v0.18.0

func (h Handler) CreatePersonalAccessToken(c *fiber.Ctx) error

func (Handler) DeletePersonalAccessToken added in v0.18.0

func (h Handler) DeletePersonalAccessToken(c *fiber.Ctx) error

func (Handler) GetCharacterComments added in v0.22.0

func (h Handler) GetCharacterComments(c *fiber.Ctx) error

func (Handler) GetCharacterRevision

func (h Handler) GetCharacterRevision(c *fiber.Ctx) error

func (Handler) GetEpisode

func (h Handler) GetEpisode(c *fiber.Ctx) error

func (Handler) GetEpisodeComments added in v0.22.0

func (h Handler) GetEpisodeComments(c *fiber.Ctx) error

func (Handler) GetGroupProfileByNamePrivate added in v0.20.9

func (h Handler) GetGroupProfileByNamePrivate(c *fiber.Ctx) error

func (Handler) GetGroupTopic added in v0.22.0

func (h Handler) GetGroupTopic(c *fiber.Ctx) error

func (Handler) GetIndexComments added in v0.22.0

func (h Handler) GetIndexComments(c *fiber.Ctx) error

func (Handler) GetPersonComments added in v0.22.0

func (h Handler) GetPersonComments(c *fiber.Ctx) error

func (Handler) GetPersonRevision

func (h Handler) GetPersonRevision(c *fiber.Ctx) error

func (Handler) GetSubjectRevision

func (h Handler) GetSubjectRevision(c *fiber.Ctx) error

func (Handler) GetSubjectTopic added in v0.22.0

func (h Handler) GetSubjectTopic(c *fiber.Ctx) error

func (Handler) ListCharacterRevision

func (h Handler) ListCharacterRevision(c *fiber.Ctx) error

func (Handler) ListEpisode

func (h Handler) ListEpisode(c *fiber.Ctx) error

func (Handler) ListGroupMembersPrivate added in v0.20.9

func (h Handler) ListGroupMembersPrivate(c *fiber.Ctx) error

func (Handler) ListGroupTopics added in v0.22.0

func (h Handler) ListGroupTopics(c *fiber.Ctx) error

func (Handler) ListPersonRevision

func (h Handler) ListPersonRevision(c *fiber.Ctx) error

func (Handler) ListSubjectRevision

func (h Handler) ListSubjectRevision(c *fiber.Ctx) error

func (Handler) ListSubjectTopics added in v0.22.0

func (h Handler) ListSubjectTopics(c *fiber.Ctx) error

func (Handler) PageCreateAccessToken added in v0.18.0

func (h Handler) PageCreateAccessToken(c *fiber.Ctx) error

func (Handler) PageListAccessToken added in v0.18.0

func (h Handler) PageListAccessToken(c *fiber.Ctx) error

PageListAccessToken 直接调用了 `query.Query`。 因为这只是个demo网页,在后续重构为 api 的时候仍然应该替换为 service 。

func (Handler) PageLogin added in v0.16.0

func (h Handler) PageLogin(c *fiber.Ctx) error

func (Handler) PrivateLogin

func (h Handler) PrivateLogin(c *fiber.Ctx) error

func (Handler) PrivateLogout

func (h Handler) PrivateLogout(c *fiber.Ctx) error

func (Handler) Search added in v0.25.0

func (h Handler) Search(c *fiber.Ctx) error

type ResPrivateTopicDetailWithGroup added in v0.24.1

type ResPrivateTopicDetailWithGroup struct {
	*res.PrivateTopicDetail
	Group res.PrivateGroup `json:"group"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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