common

package
v0.0.0-...-65338ed Latest Latest
Warning

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

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

type Author struct {
	Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
}

type EmptyRes

type EmptyRes struct {
	g.Meta `mime:"application/json"`
}

EmptyRes 不响应任何数据

type ListRes

type ListRes struct {
	CurrentPage int         `json:"currentPage"`
	Total       interface{} `json:"total"`
}

ListRes 列表公共返回

type PageReq

type PageReq struct {
	DataRange []string `p:"dataRange"` // 日期范围
	PageNum   int      `p:"pageNum"`   // 当前页码
	PageSize  int      `p:"pageSize"`  // 每页数
	OrderKey  string   `p:"orderKey"`  // 排序字段
}

PageReq 公共请求参数

Jump to

Keyboard shortcuts

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