🆕 修改好友列表设置AI角色为数据库配置

This commit is contained in:
李寻欢
2024-06-17 17:30:50 +08:00
parent 42339e3c51
commit a098da39ee
8 changed files with 120 additions and 0 deletions

14
service/aiassistant.go Normal file
View File

@@ -0,0 +1,14 @@
package service
import (
"go-wechat/client"
"go-wechat/entity"
)
// GetAllAiAssistant
// @description: 取出所有AI助手
// @return records
func GetAllAiAssistant() (records []entity.AiAssistant, err error) {
err = client.MySQL.Order("created_at DESC").Find(&records).Error
return
}