xginxgodb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause-Clear Imports: 7 Imported by: 0

Documentation

Overview

后台配置管理模块的接口注入

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Regedit

func Regedit(r *gin.RouterGroup, c *xgodb.Config)

注入配置项

r	配置项路由组,会在该组下注入一系列的路由信息
c	xgodb模组配置项,如果提前注入了此处可以传nil

PS: 此服务使用了 c.GetUint("uid")>0 的鉴权,所以注入时请先在其他中间件中将uid设置到c变量中

Types

This section is empty.

Jump to

Keyboard shortcuts

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