From 4451da23e857e79990ea29163f2dc74a66736c59 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 16 May 2023 12:17:43 +0800 Subject: [PATCH] ctx --- internal/api/auth.go | 4 +--- internal/api/conversation.go | 2 -- internal/api/friend.go | 2 -- internal/api/group.go | 2 -- internal/api/msg.go | 2 -- internal/api/third.go | 2 -- internal/api/user.go | 2 -- 7 files changed, 1 insertion(+), 15 deletions(-) diff --git a/internal/api/auth.go b/internal/api/auth.go index 9c07bf3ab..aeda676ab 100644 --- a/internal/api/auth.go +++ b/internal/api/auth.go @@ -6,12 +6,10 @@ import ( "github.com/OpenIMSDK/Open-IM-Server/pkg/a2r" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/config" "github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry" - auth "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/auth" + "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/auth" "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewAuth(c discoveryregistry.SvcDiscoveryRegistry) *Auth { return &Auth{c: c} } diff --git a/internal/api/conversation.go b/internal/api/conversation.go index 358ab9355..dafdfe33b 100644 --- a/internal/api/conversation.go +++ b/internal/api/conversation.go @@ -10,8 +10,6 @@ import ( "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewConversation(c discoveryregistry.SvcDiscoveryRegistry) *Conversation { return &Conversation{c: c} } diff --git a/internal/api/friend.go b/internal/api/friend.go index 0dc3eed2c..42d700a06 100644 --- a/internal/api/friend.go +++ b/internal/api/friend.go @@ -11,8 +11,6 @@ import ( "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewFriend(c discoveryregistry.SvcDiscoveryRegistry) *Friend { return &Friend{c: c} } diff --git a/internal/api/group.go b/internal/api/group.go index fc87dbbc1..b0c84654c 100644 --- a/internal/api/group.go +++ b/internal/api/group.go @@ -12,8 +12,6 @@ import ( "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewGroup(c discoveryregistry.SvcDiscoveryRegistry) *Group { return &Group{c: c} } diff --git a/internal/api/msg.go b/internal/api/msg.go index 07f8e7756..64946488b 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -21,8 +21,6 @@ import ( "google.golang.org/protobuf/proto" ) -var _ context.Context // 解决goland编辑器bug - func NewMsg(c discoveryregistry.SvcDiscoveryRegistry) *Message { return &Message{c: c, validate: validator.New()} } diff --git a/internal/api/third.go b/internal/api/third.go index 9cdd82217..aa107291c 100644 --- a/internal/api/third.go +++ b/internal/api/third.go @@ -16,8 +16,6 @@ import ( "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewThird(c discoveryregistry.SvcDiscoveryRegistry) *Third { return &Third{c: c} } diff --git a/internal/api/user.go b/internal/api/user.go index 405b03fd4..0762a5ba6 100644 --- a/internal/api/user.go +++ b/internal/api/user.go @@ -15,8 +15,6 @@ import ( "github.com/gin-gonic/gin" ) -var _ context.Context // 解决goland编辑器bug - func NewUser(client discoveryregistry.SvcDiscoveryRegistry) *User { return &User{c: client} }