antd

package
v0.1.2-fix01 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Silent success
	Silent = "0"
	// MessageWarn message warn
	MessageWarn = "1"
	// MessageError message error
	MessageError = "2"
	// Notification notification
	Notification = "4"
	// Page page
	Page = "9"
)

Variables

This section is empty.

Functions

func Custum

func Custum(c *gin.Context, data gin.H)

Custum 兼容函数

Types

type Pages

type Pages struct {
	Total    int64 `json:"total,omitempty"`
	Current  int64 `json:"current,omitempty"`
	PageSize int64 `json:"pageSize,omitempty"`
}

Pages 分页数据

type Response

type Response struct {
	Success      bool   `json:"success,omitempty"`      // if request is success
	ErrorCode    string `json:"errorCode,omitempty"`    // code for errorType
	ErrorMessage string `json:"errorMessage,omitempty"` // message display to user
	ShowType     string `json:"showType,omitempty"`     // error display type: 0 silent; 1 message.warn; 2 message.error; 4 notification; 9 page
	TraceID      string `json:"traceId,omitempty"`      // Convenient for back-end Troubleshooting: unique request ID
	Host         string `json:"host,omitempty"`         // onvenient for backend Troubleshooting: host of current access server
}

Response response

Jump to

Keyboard shortcuts

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