v2

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonUtf8Middleware

func JsonUtf8Middleware(r *ghttp.Request)

func MiddlewareHandlerResponse

func MiddlewareHandlerResponse(r *ghttp.Request)

Types

type DefaultHandlerResponse

type DefaultHandlerResponse struct {
	Success    bool        `json:"success" dc:"是否成功,和 http status 保持一致"`
	Code       string      `json:"code" dc:"文字描述的 code"`
	Message    string      `json:"message" dc:"错误信息"`
	Properties interface{} `json:"properties" dc:"额外信息"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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