You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
729 B
31 lines
729 B
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"healthapi/internal/svc"
|
|
"healthapi/internal/types"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type SendMessageStreamLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewSendMessageStreamLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendMessageStreamLogic {
|
|
return &SendMessageStreamLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *SendMessageStreamLogic) SendMessageStream(req *types.SendMessageReq) error {
|
|
// SSE 流式响应需要在 Handler 中直接处理
|
|
// 这里只是占位,实际逻辑在 Handler 中实现
|
|
// 参考原项目的 conversation.go SendMessageStream 实现
|
|
return nil
|
|
}
|
|
|