MCPcopy Create free account
hub / github.com/53AI/53AIHub / DeleteUploadFileByID

Function DeleteUploadFileByID

api/model/upload_file.go:127–129  ·  view source on GitHub ↗

DeleteUploadFileByID 删除上传文件记录

(id int64)

Source from the content-addressed store, hash-verified

125
126// DeleteUploadFileByID 删除上传文件记录
127func DeleteUploadFileByID(id int64) error {
128 return DB.Where("id = ?", id).Delete(&UploadFile{}).Error
129}
130
131func GetPreviewKey(hashStr string, extension string, eid int64) (string, error) {
132 // md5 hash str + eid + extension

Callers 1

cascadeDeleteFileDataFunction · 0.85

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected