types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteBody

type DeleteBody struct {
	UUIDBody
}

type FindBody

type FindBody struct {
	PageBody
	KeywordBody
}

type KeywordBody

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

type PageBody

type PageBody struct {
	Page int `form:"page,default=1" json:"page" binding:"required"`
	Size int `form:"size,default=20" json:"size" binding:"required"`
}

type PageReply

type PageReply struct {
	Page  int         `json:"page"`
	Size  int         `json:"size"`
	Total int         `json:"total"`
	Data  interface{} `json:"data"`
}

type StatusUpdateBody

type StatusUpdateBody struct {
	UUIDBody
	Status int `form:"status,default=0" json:"status"`
}

type UUIDBody

type UUIDBody struct {
	ID string `form:"uuid" json:"uuid" binding:"required"`
}

func (UUIDBody) ToUUID

func (u UUIDBody) ToUUID() uuid.UUID

Jump to

Keyboard shortcuts

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