Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Oct 24, 2023
1 parent 15fcb56 commit 67d863a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions dice/platform_adapter_dingtalk.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package dice

import (
"fmt"
dingtalk "github.com/Szzrain/DingTalk-go"
"github.com/open-dingtalk/dingtalk-stream-sdk-go/chatbot"
"strings"
"time"

dingtalk "github.com/Szzrain/DingTalk-go"
"github.com/open-dingtalk/dingtalk-stream-sdk-go/chatbot"
)

type PlatformAdapterDingTalk struct {
Expand Down Expand Up @@ -141,12 +142,10 @@ func (pa *PlatformAdapterDingTalk) GetGroupInfoAsync(groupID string) {
}

func (pa *PlatformAdapterDingTalk) OnChatReceive(_ *dingtalk.Session, data *chatbot.BotCallbackDataModel) {
//palogger := pa.Session.Parent.Logger
pa.EndPoint.UserID = FormatDiceIDDingTalk(data.ChatbotUserId)
if pa.Session.ServiceAtNew[FormatDiceIDDingTalkGroup(data.ConversationId)] != nil {
pa.Session.ServiceAtNew[FormatDiceIDDingTalkGroup(data.ConversationId)].GroupName = data.ConversationTitle
}
//palogger.Info("Dingtalk OnChatReceive: ", data.Text.Content, " Sender: ", data.SenderId, " CorpId: ", data.SenderCorpId, " Conversation Type: ", data.ConversationType)
msg := pa.toStdMessage(data)
pa.Session.Execute(pa.EndPoint, msg, false)
}
Expand Down
3 changes: 2 additions & 1 deletion dice/platform_adapter_dingtalk_helper.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package dice

import (
"github.com/google/uuid"
"time"

"github.com/google/uuid"
)

func NewDingTalkConnItem(clientID string, token string, nickname string, robotCode string) *EndPointInfo {
Expand Down

0 comments on commit 67d863a

Please sign in to comment.