mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-17 18:31:21 +08:00
搭建框架
This commit is contained in:
16
conf/enumerate.go
Normal file
16
conf/enumerate.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// package conf 为配置相关.
|
||||
package conf
|
||||
|
||||
import "github.com/astaxie/beego"
|
||||
|
||||
// 登录用户的Session名
|
||||
const LoginSessionName = "LoginSessionName"
|
||||
|
||||
// app_key
|
||||
func GetAppKey() (string) {
|
||||
return beego.AppConfig.DefaultString("app_key","go-git-webhook")
|
||||
}
|
||||
|
||||
func GetDatabasePrefix() string {
|
||||
return beego.AppConfig.DefaultString("db_prefix","md_")
|
||||
}
|
||||
Reference in New Issue
Block a user