dto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 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 ListOut

type ListOut struct {
	Rows interface{} `json:"rows"`
}

type PagedIn

type PagedIn struct {
	PageNum  int `json:"page_num" form:"page_num" binding:"gte=1"`
	PerCount int `json:"per_count" form:"per_count" binding:"gte=1"`
}

PagedIn 分页输入

type PagedOut

type PagedOut struct {
	TotalCount int         `json:"total_count"`
	PerCount   int         `json:"per_count"`
	PageNum    int         `json:"page_num"`
	QueryCount int         `json:"query_count"`
	Rows       interface{} `json:"rows"`
}

type Response

type Response struct {
	ErrCode   int         `json:"code"`
	ErrMsg    string      `json:"msg"`
	Timestamp int64       `json:"timestamp"`
	Success   bool        `json:"success"`
	Data      interface{} `json:"data"`
}

Response响应类

type TokenOut

type TokenOut struct {
	Token string      `json:"token"`
	Datum interface{} `json:"datum"`
}

TokenOut 带token的data

Jump to

Keyboard shortcuts

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