feat: 优化客服会话及延迟消息逻辑
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user