Feat: group options in database scheme

This commit is contained in:
HFO4 committed 2019-12-12 09:16:24 +08:00
1 parent 2b25b9d315
commit ba34a092d1
4 files changed
+55 -6

No files matched your search

+14
View File
@@ -17,6 +17,20 @@ import (
"strconv"
)
func ArchiveAndDownload(c *gin.Context) {
// 创建上下文
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
var service explorer.ItemService
if err := c.ShouldBindJSON(&service); err == nil {
res := service.ArchiveAndDownload(ctx, c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}
// AnonymousGetContent 匿名获取文件资源
func AnonymousGetContent(c *gin.Context) {
// 创建上下文