basic structure

This commit is contained in:
微凉
2021-10-26 22:28:37 +08:00
parent d68a4048da
commit fb7e67724d
25 changed files with 615 additions and 45 deletions

View File

@ -4,8 +4,15 @@ import "gorm.io/gorm"
var (
ConfigFile string // config file
Conf *Config
Debug bool
Conf *Config
Debug bool
DB *gorm.DB
)
)
var (
TextTypes = []string{"txt", "go"}
OfficeTypes = []string{"doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf"}
VideoTypes = []string{"mp4", "mkv", "avi", "mov", "rmvb"}
AudioTypes = []string{"mp3", "flac"}
)