base_dto

package
v0.0.0-...-08c5772 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdsDTO

type IdsDTO struct {
	// ID列表
	Ids []int64 `json:"ids" form:"ids" binding:"required"`
}

IdsDTO 批量操作的数据传输对象

type PageDTO

type PageDTO struct {
	// 页码
	PageNum int `json:"pageNum" form:"pageNum" query:"pageNum" binding:"required" default:"1"`
	// 每页数量
	PageSize int `json:"pageSize" form:"pageSize" query:"pageSize" binding:"required" default:"10"`
}

PageDTO 分页请求的数据传输对象

type PathVariableDTO

type PathVariableDTO struct {
	// ID
	Id int64 `uri:"id" binding:"required"`
}

PathVariableDTO 路径参数的数据传输对象

type StatusDTO

type StatusDTO struct {
	// 状态
	Status int `json:"status" form:"status" binding:"required"`
}

StatusDTO 状态的数据传输对象

type UserDTO

type UserDTO struct {
	UserId int64 `json:"userId" uri:"user_id"`
	Id     int64 `json:"id" uri:"id"`
}

Jump to

Keyboard shortcuts

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