Feat: create folder / Modify: add index to some column

This commit is contained in:
HFO4
2019-11-24 11:33:30 +08:00
parent 89b54e401c
commit a89c3cb11a
7 changed files with 112 additions and 9 deletions

View File

@@ -1 +1,17 @@
package controllers
import (
"github.com/HFO4/cloudreve/service/explorer"
"github.com/gin-gonic/gin"
)
// CreateDirectory 创建目录
func CreateDirectory(c *gin.Context) {
var service explorer.DirectoryCreateService
if err := c.ShouldBindJSON(&service); err == nil {
res := service.CreateDirectory(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}