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
+1 -1
View File
@@ -27,7 +27,7 @@ func CheckAuth(username, password string) (bool, error) {
}
// EditUser 编辑用户信息
func EditUser(username string, data interface{}) error {
func EditUser(username string, data map[string]interface{}) error {
if err := db.Model(&Auth{}).Where("username = ? ", username).Updates(data).Error; err != nil {
return err
}
+1 -1
View File
@@ -169,7 +169,7 @@ func DeleteMsgTask(id string) error {
return nil
}
func EditSendTask(id string, data interface{}) error {
func EditSendTask(id string, data map[string]interface{}) error {
if err := db.Model(&SendTasks{}).Where("id = ? ", id).Updates(data).Error; err != nil {
return err
}