req

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 3 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

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