common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* @Descripttion: 前端接口公共参数 * @version: 1.0 * @Author: lfzxs@qq.com * @Date: 2023-11-08 10:33:02 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-12-01 09:25:20

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 {
	Current int `json:"current" dc:"当前页码"`
	Total   int `json:"total" dc:"总记录数"`
	Size    int `json:"size" dc:"每页记录数"`
}

ListRes 列表公共返回

type PageReq

type PageReq struct {
	PageNum  int    `p:"pageNum" dc:"当前页码" d:"1" db_order:"{'field':'current'}"`
	PageSize int    `p:"pageSize" dc:"每页条数" d:"10" db_order:"{'field':'size'}"`
	Column   string `p:"column" dc:"排序字段"`
	Order    string `p:"order"  dc:"排序方式:desc,asc"`
}

PageReq 公共请求参数

Jump to

Keyboard shortcuts

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