feat: 优化客服会话及延迟消息逻辑

This commit is contained in:
2026-04-16 15:48:26 +08:00
parent d99481cdb0
commit 9f54f95264
10 changed files with 132 additions and 116 deletions

View File

@@ -2,13 +2,9 @@ package service
import (
"context"
"customer-server/consts/public"
"customer-server/model/dto"
"fmt"
gmq "github.com/bjang03/gmq/core/gmq"
"github.com/bjang03/gmq/mq"
"github.com/bjang03/gmq/types"
"github.com/gogf/gf/v2/frame/g"
)
@@ -18,14 +14,6 @@ var (
type accountHttpService struct{}
func (s *accountHttpService) DeleteDelayMsg(ctx context.Context) (err error) {
return gmq.GetGmq(public.GmqMsgPluginsName).GmqDeleteDelay(ctx, &mq.NatsDelMessage{
DelMessage: types.DelMessage{
Topic: public.AccountFollowupTopic,
},
})
}
func (s *accountHttpService) Connect(ctx context.Context, req *dto.AccountHttpConnectReq) (res *dto.AccountHttpConnectRes, err error) {
// 获取客服账号信息
accountInfo, err := SessionToolService.GetAccountInfo(ctx, req.AccountCode)