swg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-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 CodeMsg

type CodeMsg struct {
	Code int    `json:"code" example:"0"`      // 响应码 非0即为失败
	Msg  string `json:"msg" example:"success"` // msg
}

type MultiData

type MultiData[T any] struct {
	CodeMsg
	Data []T `json:"data"`
}

type Page

type Page struct {
	TotalCount int64  `json:"total_count" example:"100"` // 列表数据总数
	TotalPage  int64  `json:"total_page" example:"10"`   // 列表页总数
	PageCount  int64  `json:"page_count" example:"10"`   // 当前页数量
	PageIndex  int64  `json:"page_index" example:"3"`    // 当前页码
	Sort       string `json:"sort"`                      // 排序
}

type SingleData

type SingleData[T any] struct {
	CodeMsg
	Data T `json:"data"`
}

Jump to

Keyboard shortcuts

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