go-wxhelper/service/aiassistant/delete.go

17 lines
340 B
Go
Raw Permalink Normal View History

package aiassistant
import (
"wechat-robot/internal/database"
"wechat-robot/model/entity"
)
// DeleteById
// @description: 删除AI助手
// @param id string id
// @return err error 错误
func DeleteById(id string) (err error) {
// 删除数据
err = database.Client.Where("id = ?", id).Delete(&entity.AiAssistant{}).Error
return
}