Documentation ¶
Overview ¶
* @Name: * @Descripttion: * @Warning: * @version: * @Author: moo * @Date: 2020-10-28 10:28:00 * @LastEditors: moo * @LastEditTime: 2020-11-02 13:52:22
* @Name: * @Descripttion: * @Warning: * @version: * @Author: moo * @Date: 2020-10-29 14:19:54 * @LastEditors: moo * @LastEditTime: 2021-05-17 18:49:29
* @Name: * @Descripttion: * @Warning: * @version: * @Author: moo * @Date: 2020-10-29 18:25:17 * @LastEditors: moo * @LastEditTime: 2021-01-29 22:48:04
Index ¶
- func Handle(h HandlerFunc) gin.HandlerFunc
- func SetDebug(b bool)
- func SetDefaultLogger(logger *logcore.AppLogger)
- func SetRespLogLevel(level string)
- type Context
- func (cc *Context) CreateSuccess(args ...interface{})
- func (cc *Context) Fail(code e.ERRCODE, args ...interface{})
- func (cc *Context) Panic(code e.ERRCODE, args ...interface{})
- func (cc *Context) PrintPostJson()
- func (cc *Context) RtnMsg(status int, code e.ERRCODE, msg string)
- func (cc *Context) Success(args ...interface{})
- type HandlerFunc
- type RspRecord
- type SwagResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(h HandlerFunc) gin.HandlerFunc
func SetDefaultLogger ¶
func SetRespLogLevel ¶
func SetRespLogLevel(level string)
Types ¶
type Context ¶
func (*Context) CreateSuccess ¶
func (cc *Context) CreateSuccess(args ...interface{})
func (*Context) PrintPostJson ¶
func (cc *Context) PrintPostJson()
type HandlerFunc ¶
type HandlerFunc func(c *Context)
** Warning: HandlerFunc / Headle 的写法暂时废弃,原因是可能会影响gin的移植 **
Click to show internal directories.
Click to hide internal directories.