Feat: save re-save single shared file

This commit is contained in:
HFO4
2020-01-29 13:45:27 +08:00
parent 0d7c0793b2
commit e2f6dab70c
10 changed files with 241 additions and 88 deletions

View File

@@ -90,3 +90,14 @@ func GetShareDocPreview(c *gin.Context) {
c.JSON(200, ErrorResponse(err))
}
}
// SaveShare 转存他人分享
func SaveShare(c *gin.Context) {
var service share.SingleFileService
if err := c.ShouldBindJSON(&service); err == nil {
res := service.SaveToMyFile(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}