forked from lxh/go-wxhelper
17 lines
340 B
Go
17 lines
340 B
Go
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
|
|
}
|