update
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Description : 结合gin框架的一些工具集
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2021-03-09 4:51 下午
|
||||
package util
|
||||
@ -18,7 +18,7 @@ import (
|
||||
|
||||
// Response 向客户端响应数据
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 4:52 下午 2021/3/9
|
||||
func Response(ctx *gin.Context, code interface{}, message string, data interface{}) {
|
||||
@ -34,7 +34,7 @@ func Response(ctx *gin.Context, code interface{}, message string, data interface
|
||||
|
||||
// RegisterRouter 注册gin路由
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 8:36 下午 2021/3/9
|
||||
func RegisterRouter(router *gin.Engine, method string, uri string, handler gin.HandlerFunc, middlewareList []gin.HandlerFunc) error {
|
||||
@ -67,7 +67,7 @@ func RegisterRouter(router *gin.Engine, method string, uri string, handler gin.H
|
||||
|
||||
// RegisterRouterGroup 注册gin路由
|
||||
//
|
||||
// Author : go_developer@163.com<张德满>
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 8:36 下午 2021/3/9
|
||||
func RegisterRouterGroup(router *gin.RouterGroup, method string, uri string, handler gin.HandlerFunc) error {
|
||||
|
Reference in New Issue
Block a user