scale

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *req.Client

func Request

func Request[T any](req *req.Request, method string, url string) (*T, error)

Types

type PageResponseData

type PageResponseData[T any] struct {
	List      T     `json:"list"`
	Page      int64 `json:"page"`
	PageSize  int64 `json:"page_size"`
	TotalNum  int64 `json:"total_num"`
	TotalPage int64 `json:"total_page"`
}

type SuccessResponse

type SuccessResponse[T any] struct {
	Status string `json:"status"`
	Data   T      `json:"data"`
}

Jump to

Keyboard shortcuts

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