mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-26 02:50:24 +08:00
feat: 新增sql脚本执行及其他优化
This commit is contained in:
@@ -151,7 +151,8 @@ func (m *machineFileAppImpl) UploadFile(la *model.LoginAccount, fileId uint64, p
|
||||
|
||||
createfile.Write(content)
|
||||
// 保存消息并发送文件上传成功通知
|
||||
m.msgApp.CreateAndSend(la, ws.SuccessMsg("文件上传成功", fmt.Sprintf("[%s]文件已成功上传至[%s]", filename, path)))
|
||||
machine := m.machineRepo.GetById(machineId)
|
||||
m.msgApp.CreateAndSend(la, ws.SuccessMsg("文件上传成功", fmt.Sprintf("[%s]文件已成功上传至 %s[%s:%s]", filename, machine.Name, machine.Ip, path)))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user