copy api

This commit is contained in:
微凉
2022-01-26 14:07:51 +08:00
parent c70fc3fc4b
commit 8fc7c716c0
4 changed files with 65 additions and 3 deletions

View File

@ -9,14 +9,14 @@ import (
"github.com/gin-gonic/gin"
)
type MoveReq struct {
type MoveCopyReq struct {
SrcDir string `json:"src_dir"`
DstDir string `json:"dst_dir"`
Names []string `json:"names"`
}
func Move(c *gin.Context) {
var req MoveReq
var req MoveCopyReq
if err := c.ShouldBind(&req); err != nil {
common.ErrorResp(c, err, 400)
return