feat: 迁移plant
This commit is contained in:
@@ -5,6 +5,7 @@ package ai
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"sundynix-micro-go/app/plant/api/internal/svc"
|
||||
@@ -25,8 +26,10 @@ func NewGetAiChatHistoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *
|
||||
}
|
||||
}
|
||||
|
||||
func (l *GetAiChatHistoryLogic) GetAiChatHistory() error {
|
||||
// todo: add your logic here and delete this line
|
||||
|
||||
return nil
|
||||
// GetAiChatHistory TODO: 完善 AI 聊天历史查询
|
||||
func (l *GetAiChatHistoryLogic) GetAiChatHistory() (interface{}, error) {
|
||||
userId := fmt.Sprintf("%v", l.ctx.Value("userId"))
|
||||
l.Logger.Infof("get ai chat history for user: %s", userId)
|
||||
// 待实现:从 sundynix_ai_chat_history 表分页查询
|
||||
return map[string]interface{}{"list": []interface{}{}}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user