form

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id struct {
	Id uint64 `form:"id" json:"id"`
}

Id id

type Ids

type Ids struct {
	Ids []uint64 `form:"ids" json:"ids"`
}

Ids id列表

type Keyword

type Keyword struct {
	Keyword string `form:"keyword" json:"keyword"`
}

Keyword 关键词

type Pagination

type Pagination struct {
	Page     int  `form:"page" json:"page"`
	PageSize int  `form:"page_size" json:"page_size"`
	NoPage   bool `form:"no_page" json:"no_page"`
}

Pagination 分页

func (*Pagination) CheckOrDefault

func (pagination *Pagination) CheckOrDefault()

func (*Pagination) Default

func (pagination *Pagination) Default()

func (*Pagination) Offset

func (pagination *Pagination) Offset() int

func (*Pagination) Valid

func (pagination *Pagination) Valid() bool

type SearchPagination

type SearchPagination struct {
	Pagination
	Keyword
}

SearchPagination 搜索分页

Jump to

Keyboard shortcuts

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