Documentation ¶
Index ¶
- Constants
- func InitHTTP(conf *config.Conf, handler *gin.Engine)
- func NewHTTP() *gin.Engine
- func RespBusiness(c *gin.Context, code int, msg string)
- func RespInvalidParam(c *gin.Context, msg string)
- func RespSuccess(c *gin.Context)
- func RespSuccessMsg(c *gin.Context, obj interface{})
- func RespSysError(c *gin.Context)
- type ApiResult
- type RespModel
Constants ¶
View Source
const ( SUCCESS_CODE = 200 // 成功 INVALID_PARAM = 499 // 参数错误 SYS_ERROR = 500 // 系统错误 JWT_FAIL = 4001 // JWT错误 )
View Source
const ( REGISTER_TTL = 15 //重新注册时间 REGISTER_INTERVAL = 10 //注册过期时间 )
Variables ¶
This section is empty.
Functions ¶
func RespInvalidParam ¶
func RespSuccess ¶
func RespSuccessMsg ¶
func RespSysError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.