mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-30 09:41:52 +08:00
16 lines
358 B
Go
16 lines
358 B
Go
// 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_")
|
|
} |