|
|
|
@ -107,7 +107,7 @@ func fileUpload(c *gin.Context) {
|
|
|
|
|
targetIdentityId := CommonUtil.ConvertStringToInt32(c.PostForm("target_identity_id")) //目标人身份ID
|
|
|
|
|
targetPersonId := CommonUtil.ConvertStringToInt32(c.PostForm("target_person_id")) //目标人员ID
|
|
|
|
|
systemId := CommonUtil.ConvertStringToInt32(c.PostForm("system_id")) //系统id
|
|
|
|
|
FileRelateDao.FileRecord(filename, identityId, personId, targetGroupId, targetIdentityId, targetPersonId, systemId, int32(size), ext)
|
|
|
|
|
FileRelateDao.FileRecord(uuid,filename, identityId, personId, targetGroupId, targetIdentityId, targetPersonId, systemId, int32(size), ext)
|
|
|
|
|
|
|
|
|
|
//返回
|
|
|
|
|
s := FileRelateDao.GetFileDownLoadUrl(trueName[0:2]+"/"+trueName, file.Filename)
|
|
|
|
@ -149,6 +149,7 @@ func fileUpload(c *gin.Context) {
|
|
|
|
|
"url": s,
|
|
|
|
|
"thumbContent": sourceString,
|
|
|
|
|
"size": size,
|
|
|
|
|
"file_id": uuid,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
//删除原始文件
|
|
|
|
@ -157,6 +158,7 @@ func fileUpload(c *gin.Context) {
|
|
|
|
|
"success": true,
|
|
|
|
|
"url": s,
|
|
|
|
|
"size": size,
|
|
|
|
|
"file_id": uuid,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|