resp

package
v0.0.0-...-3dda883 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpFileRespResult

type HttpFileRespResult struct {
	FilePath string
	FileName string

	HttpStatus int
}

type HttpHtmlRespResult

type HttpHtmlRespResult struct {
	Name string
	Data interface{}

	HttpStatus int
}

type HttpJsonRespResult

type HttpJsonRespResult struct {
	Resp RespResult

	HttpStatus int
}

type HttpProtoBufRespResult

type HttpProtoBufRespResult struct {
	Data interface{}

	HttpStatus int
}

type HttpRedirectRespResult

type HttpRedirectRespResult struct {
	Location string

	HttpStatus int
}

type HttpTextRespResult

type HttpTextRespResult struct {
	Text string

	HttpStatus int
}

type HttpXmlRespResult

type HttpXmlRespResult struct {
	Data interface{}

	HttpStatus int
}

type ListRespResult

type ListRespResult struct {
	Total int         `json:"total"`
	Data  interface{} `json:"data"`
}

type PageRespResult

type PageRespResult struct {
	Total int64       `json:"total"`
	Page  int         `json:"page"`
	Size  int         `json:"size"`
	Data  interface{} `json:"data"`
}

type RespResult

type RespResult struct {
	Code      int         `json:"code" xml:"code"`
	Message   string      `json:"message" xml:"message"`
	Data      interface{} `json:"data" xml:"data"`
	Timestamp int64       `json:"timestamp" xml:"timestamp"`
}

Jump to

Keyboard shortcuts

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