feat: complete settings

This commit is contained in:
engigu
2024-01-01 12:03:56 +08:00
parent 66b3a30a62
commit 4a1e663396
19 changed files with 242 additions and 155 deletions
+8
View File
@@ -162,3 +162,11 @@ func DeleteMsgTask(id string) error {
tx.Commit()
return nil
}
func EditSendTask(id string, data interface{}) error {
if err := db.Model(&SendTasks{}).Where("id = ? ", id).Updates(data).Error; err != nil {
return err
}
return nil
}