2024-06-17 17:30:50 +08:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go-wechat/client"
|
2024-07-04 14:10:46 +08:00
|
|
|
"go-wechat/model/entity"
|
2024-06-17 17:30:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetAllAiAssistant
|
|
|
|
// @description: 取出所有AI助手
|
|
|
|
// @return records
|
|
|
|
func GetAllAiAssistant() (records []entity.AiAssistant, err error) {
|
|
|
|
err = client.MySQL.Order("created_at DESC").Find(&records).Error
|
|
|
|
return
|
|
|
|
}
|