add go-captcha / add base auth api

This commit is contained in:
landaiqing
2024-08-06 00:08:33 +08:00
parent 9b36d2fff0
commit d0496b34f0
29 changed files with 687 additions and 121 deletions

View File

@@ -63,11 +63,11 @@ func InitLogger() *logrus.Logger {
}
newLog.SetLevel(level) //设置日志级别
global.LOG = newLog
InitDefaultLogger()
initDefaultLogger()
return newLog
}
func InitDefaultLogger() {
func initDefaultLogger() {
//全局日志
logrus.SetOutput(os.Stdout) //设置输出类型
logrus.SetReportCaller(global.CONFIG.Logger.ShowLine) //设置是否显示函数名和行号