Feat: archive & download routers for test

This commit is contained in:
HFO4
2019-12-12 10:04:24 +08:00
parent ba34a092d1
commit e8aa0435c5
5 changed files with 64 additions and 4 deletions

View File

@@ -166,6 +166,10 @@ func addDefaultGroups() {
Color: "danger",
WebDAVEnabled: true,
Aria2Option: "0,0,0",
OptionsSerialized: GroupOption{
ArchiveDownloadEnabled: true,
ArchiveTaskEnabled: true,
},
}
if err := DB.Create(&defaultAdminGroup).Error; err != nil {
util.Log().Panic("无法创建管理用户组, %s", err)