req

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderCFRay = "Cf-Ray"

Variables

This section is empty.

Functions

func JSON

func JSON(c *fiber.Ctx) error

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.CollectionType, error)

func ParseEpisodeID added in v0.22.1

func ParseEpisodeID(s string) (model.EpisodeID, error)

func ParseIndexID added in v0.22.1

func ParseIndexID(s string) (model.IndexID, error)

func ParsePersonID added in v0.22.1

func ParsePersonID(s string) (model.PersonID, error)

func ParseSubjectID added in v0.22.1

func ParseSubjectID(s string) (model.SubjectID, error)

func ParseSubjectType added in v0.22.1

func ParseSubjectType(s string) (model.SubjectType, error)

func ParseTopicID added in v0.22.1

func ParseTopicID(s string) (model.TopicID, error)

Types

type CreatePersonalAccessToken added in v0.18.0

type CreatePersonalAccessToken struct {
	Name         string `json:"name"`
	DurationDays uint   `json:"duration_days" validate:"required,lte=365" validateName:"有效期"`
}

type DeletePersonalAccessToken added in v0.18.0

type DeletePersonalAccessToken struct {
	ID uint32 `json:"id" validate:"required"`
}

type RevokeSession

type RevokeSession struct {
	UID uint32 `validate:"required,gt=0" json:"uid"`
}

type UserLogin

type UserLogin struct {
	Email            string `json:"email" validate:"required,email"`
	Password         string `json:"password" validate:"required"`
	HCaptchaResponse string `json:"h-captcha-response" validate:"required"` //nolint:tagliatelle
}

Jump to

Keyboard shortcuts

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