forms

package
v0.0.0-...-ad1e6f0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetComposersPageRequest

type GetComposersPageRequest struct {
	PaginatedRequest
}

type GetSheetsPageRequest

type GetSheetsPageRequest struct {
	PaginatedRequest
	Composer string `form:"composer"`
}

type InformationTextRequest

type InformationTextRequest struct {
	InformationText string `form:"informationText"`
}

type PaginatedRequest

type PaginatedRequest struct {
	SortBy string `form:"sort_by,default=updated_at desc"`
	Limit  int    `form:"limit,default=10"`
	Page   int    `form:"page,default=1"`
}

type RequestResetPasswordRequest

type RequestResetPasswordRequest struct {
	Email string `form:"email"`
}

func (*RequestResetPasswordRequest) ValidateForm

func (req *RequestResetPasswordRequest) ValidateForm() error

type ResetPasswordRequest

type ResetPasswordRequest struct {
	PasswordResetId string `form:"passwordResetId"`
	Password        string `form:"password"`
}

func (*ResetPasswordRequest) ValidateForm

func (req *ResetPasswordRequest) ValidateForm() error

type TagRequest

type TagRequest struct {
	TagValue string `form:"tagValue"`
}

type UpdateComposersRequest

type UpdateComposersRequest struct {
	Name        string                `form:"name"`
	PortraitUrl string                `form:"portrait_url"`
	Epoch       string                `form:"epoch"`
	File        *multipart.FileHeader `form:"portrait"`
}

type UploadRequest

type UploadRequest struct {
	File            *multipart.FileHeader `form:"uploadFile"`
	Composer        string                `form:"composer"`
	SheetName       string                `form:"sheetName"`
	ReleaseDate     string                `form:"releaseDate"`
	Categories      string                `form:"categories"`
	Tags            string                `form:"tags"`
	InformationText string                `form:"informationText"`
}

func (*UploadRequest) ValidateForm

func (req *UploadRequest) ValidateForm() error

Jump to

Keyboard shortcuts

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