Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Validator binding.StructValidator = &defaultValidator{}
Functions ¶
Types ¶
type AuthLoginReq ¶
type AuthPasswordReq ¶
type AuthResetReq ¶
type ConfirmReq ¶
type ConfirmReq struct {
Confirm bool `json:"confirm" form:"confirm" binding:"required"`
}
type IDReq ¶
type IDReq struct {
ID string `json:"id" yaml:"id" form:"id" uri:"id" binding:"required"`
}
type NameReq ¶
type NameReq struct {
Name string `form:"name" uri:"name" json:"name" binding:"required"`
}
type PaginationReq ¶
func (*PaginationReq) FindPage ¶
func (p *PaginationReq) FindPage(sizeLimit ...int) (offset int, limit int)
func (*PaginationReq) StartEnd ¶
func (p *PaginationReq) StartEnd() (start, end int)
Click to show internal directories.
Click to hide internal directories.