fix: update task name error

This commit is contained in:
engigu
2025-08-10 14:27:50 +08:00
parent f3bfe34875
commit 0a12a25473
5 changed files with 12 additions and 8 deletions
+6 -3
View File
@@ -1,6 +1,7 @@
package v1
import (
"fmt"
"message-nest/pkg/e"
"net/http"
@@ -124,11 +125,13 @@ func EditMsgSendTask(c *gin.Context) {
ID: req.ID,
}
var data = map[string]string{}
data["name"] = req.TaskName
var data = map[string]interface{}{
"name": req.TaskName,
}
err := MsgSendTaskService.Edit(data)
if err != nil {
appG.CResponse(http.StatusBadRequest, "编辑发信任务失败!", nil)
appG.CResponse(http.StatusBadRequest, fmt.Sprintf("编辑发信任务失败!%s", err), nil)
return
}