util

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package util ...

Description : 结合gin框架的一些工具集

Author : go_developer@163.com<白茶清欢>

Date : 2021-03-09 4:51 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouter

func RegisterRouter(router *gin.Engine, method string, uri string, handler gin.HandlerFunc, middlewareList []gin.HandlerFunc) error

RegisterRouter 注册gin路由

Author : go_developer@163.com<白茶清欢>

Date : 8:36 下午 2021/3/9

func RegisterRouterGroup

func RegisterRouterGroup(router *gin.RouterGroup, method string, uri string, handler gin.HandlerFunc) error

RegisterRouterGroup 注册gin路由

Author : go_developer@163.com<白茶清欢>

Date : 8:36 下午 2021/3/9

func Response

func Response(ctx *gin.Context, code interface{}, message string, data interface{})

Response 向客户端响应数据

Author : go_developer@163.com<白茶清欢>

Date : 4:52 下午 2021/3/9

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL