提交 9a84e907 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

清理无用方法FileCreateComplete

上级 e2d0c62e
......@@ -50,23 +50,6 @@ func CreateFileChunk(id uint, fileChunkPath string, fileChunkNumber int) error {
return err
}
// @title FileCreateComplete
// @description file creation, 文件合成完成
// @auth (2020/04/05 20:22)
// @param fileMd5 string
// @param fileName string
// @param filePath string
// @return error
func FileCreateComplete(fileMd5 string, fileName string, filePath string) error {
var file model.ExaFile
upDateFile := make(map[string]interface{})
upDateFile["FilePath"] = filePath
upDateFile["IsFinish"] = true
err := global.GVA_DB.Where("file_md5 = ? AND file_name = ?", fileMd5, fileName).First(&file).Updates(upDateFile).Error
return err
}
// @title DeleteFileChunk
// @description delete a chuck of the file, 删除文件切片记录
// @auth (2020/04/05 20:22)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册