common

package
v0.0.0-...-14a2a1b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 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 CaptchaReq

type CaptchaReq struct {
	g.Meta `path:"/get" tags:"验证码" method:"get" summary:"获取验证码"`
}

type CaptchaRes

type CaptchaRes struct {
	g.Meta `mime:"application/json"`
	Key    string `json:"key"`
	Img    string `json:"img"`
}

type ListRes

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

ListRes 列表公共返回

type PageReq

type PageReq struct {
	DateRange []string `p:"dateRange"` //日期范围
	PageNum   int      `p:"pageNum"`   //当前页码
	PageSize  int      `p:"pageSize"`  //每页数
	OrderBy   string   //排序方式
}

PageReq 公共请求参数

type UploadMultipleFileReq

type UploadMultipleFileReq struct {
	g.Meta `path:"/multipleFile" tags:"上传多文件" method:"post" summary:"上传多文件"`
}

多文件上传

type UploadMultipleImgReq

type UploadMultipleImgReq struct {
	g.Meta `path:"/multipleImg" tags:"上传多图片" method:"post" summary:"上传多图片"`
}

多图上传

type UploadMultipleRes

type UploadMultipleRes []*UploadResponse

type UploadResponse

type UploadResponse struct {
	Size     int64  `json:"size"`
	Path     string `json:"path"`
	FullPath string `json:"full_path"`
	Name     string `json:"name"`
	Type     string `json:"type"`
}

type UploadSingleFileReq

type UploadSingleFileReq struct {
	g.Meta `path:"/singleFile" tags:"上传文件" method:"post" summary:"上传文件"`
}

单文件上传

type UploadSingleImgReq

type UploadSingleImgReq struct {
	g.Meta `path:"/singleImg" tags:"上传图片" method:"post" summary:"上传图片"`
}

单图上传

type UploadSingleRes

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

Jump to

Keyboard shortcuts

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