Documentation ¶
Overview ¶
Package response 服务响应处理
Index ¶
- Constants
- func Write(ctx *gin.Context, data interface{})
- func WriteBase(ctx *gin.Context, err interface{})
- func WriteBaseID(ctx *gin.Context, id int64) error
- func WriteBasePage(ctx *gin.Context, list interface{}, total int64) error
- func WriteData(ctx *gin.Context, data, err interface{})
- func WriteParamInvalid(ctx *gin.Context, err interface{})
- type Base
- type BaseRsp
Constants ¶
View Source
const ( CodeSuccess = 100000 CodeRequestParamInvalid = 100001 CodeServerErrUnknown = 200000 )
Variables ¶
This section is empty.
Functions ¶
func WriteBasePage ¶
WriteBasePage 写回带分页的数据
Types ¶
Click to show internal directories.
Click to hide internal directories.