mirror of
https://gitee.com/shikong-sk/gofiber-study
synced 2025-02-23 15:22:14 +08:00
16 lines
337 B
Go
16 lines
337 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"gofiber.study.skcks.cn/common/config"
|
||
|
"gofiber.study.skcks.cn/common/logger"
|
||
|
"gofiber.study.skcks.cn/common/utils"
|
||
|
"gofiber.study.skcks.cn/global"
|
||
|
)
|
||
|
|
||
|
func reloadNanoId(c *config.BasicConfig) {
|
||
|
global.NanoIdConfig = &c.NanoId
|
||
|
utils.MainAppExec(func() {
|
||
|
logger.Log.Infof("[√] [nanoid] 配置完成")
|
||
|
})
|
||
|
}
|