feat: 迁移plant

This commit is contained in:
Blizzard
2026-05-23 13:55:05 +08:00
parent a93477ea8e
commit ae6d03d351
228 changed files with 25296 additions and 917 deletions
@@ -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
}