xginxgodb

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: BSD-3-Clause-Clear Imports: 11 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, sp ...string)

注入配置项

r	配置项路由组,会在该组下注入一系列的路由信息
c	xgodb模组配置项,如果提前注入了此处可以传nil
sp	同步配置项的上级菜单分组【可选参数,空表示不同步,传入的话会将配置项归属到该分组下】

PS: 此服务使用了 c.GetUint("uid")>0 的鉴权,所以注入时请先在其他中间件中将uid设置到c变量中 PS2: 此服务注入了"FRAM_SYNC_URL", "FRAM_SYNC_URL_AES", "FRAM_SYNC_DOMAIN", "FRAM_SYNC_DOMAIN_AES"配置项用于配置项的同步,且此四项任意项为空均不会同步,所以建议正确进行配置

Types

This section is empty.

Jump to

Keyboard shortcuts

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