request

package
v0.0.0-...-d140a6e Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FooRequest

type FooRequest struct {
	FormRequest
	Name string `json:"name" comment:"名称" binding:"required"`
}

type FormRequest

type FormRequest struct {
}

FormRequest 规则手册 https://github.com/go-playground/validator/blob/master/README.md

func (*FormRequest) Translate

func (request *FormRequest) Translate(value reflect.Value, err error) string

Translate 翻译错误信息 */

type PageRequest

type PageRequest struct {
	Page    int    `form:"page" comment:"当前页" binding:"required,gte=1"`
	Limit   int    `form:"limit" comment:"页数量" binding:"required,gte=1,lte=100"`
	Keyword string `form:"keyword" comment:"关键词"`
}

Jump to

Keyboard shortcuts

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