增加是否开启导出功能的选项

This commit is contained in:
lifei6671
2018-07-12 18:44:02 +08:00
parent 97f1d0f8a7
commit e694e63299
4 changed files with 13 additions and 0 deletions

View File

@@ -137,6 +137,10 @@ func GetUploadFileSize() int64 {
}
return 0
}
//是否启用导出
func GetEnableExport() bool {
return beego.AppConfig.DefaultBool("enable_export",true)
}
//同一项目导出线程的并发数
func GetExportProcessNum() int {
exportProcessNum := beego.AppConfig.DefaultInt("export_process_num",1)