Documentation ¶
Overview ¶
* @Author: lihuan * @Date: 2024-08-27 20:42:11 * @LastEditors: lihuan * @LastEditTime: 2024-09-18 21:07:29 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2024-09-13 22:03:05 * @LastEditors: lihuan * @LastEditTime: 2024-09-14 23:19:26 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2024-09-01 20:42:11 * @LastEditors: lihuan * @LastEditTime: 2024-09-22 18:03:59 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2024-09-19 19:42:00 * @LastEditors: lihuan * @LastEditTime: 2024-09-21 21:46:52 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2024-08-27 20:42:11 * @LastEditors: lihuan * @LastEditTime: 2024-09-02 20:33:10 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2021-12-13 20:15:52 * @LastEditors: lihuan * @LastEditTime: 2024-09-05 21:28:46 * @Email: 17719495105@163.com
Index ¶
- Constants
- func EncodeMd5(s string, sum []byte) string
- func ErrorResponse(ctx *gin.Context, value ...interface{})
- func GenerateToken(id string, secret []byte, exp int) (string, error)
- func GetMsg(code int) string
- func HttpHandle(ctx *gin.Context, opt HttpHandleOptions) ([]byte, error)
- func InitLogger(c *Conf) *logrus.Logger
- func SuccessResponse(ctx *gin.Context, value ...interface{})
- type Application
- type Claims
- type Conf
- type HttpHandleOptions
- type Log
- type Md5
- type MySql
- type Redis
- type Token
- type WX
Constants ¶
const ( Success = 2000 ErrParamsParse = 2001 ErrInvalidToken = 2003 ErrTokenTimeout = 2004 ErrTokenParse = 2005 ErrPhoneNotExit = 2006 ErrRecordNotFound = 2007 ErrCustomtMsg = 2008 )
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func HttpHandle ¶
func HttpHandle(ctx *gin.Context, opt HttpHandleOptions) ([]byte, error)
func InitLogger ¶
func SuccessResponse ¶
Types ¶
type Application ¶
type Conf ¶
type HttpHandleOptions ¶
type HttpHandleOptions struct { Url string Reply interface{} }