mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
errcode
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type UserRegisterReq struct {
|
||||
Secret string `json:"secret" binding:"required,max=32"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type AwsStorageCredentialReq struct {
|
||||
OperationID string `json:"operationID"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type SetClientInitConfigReq struct {
|
||||
OperationID string `json:"operationID" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type RequestPagination struct {
|
||||
PageNumber int `json:"pageNumber" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type OptResult struct {
|
||||
ConversationID string `json:"conversationID"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import sts "github.com/tencentyun/qcloud-cos-sts-sdk/go"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
//type ParamsCommFriend struct {
|
||||
// OperationID string `json:"operationID" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
pbRelay "Open_IM/pkg/proto/relay"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/proto/msg"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
pbOffice "Open_IM/pkg/proto/office"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type OSSCredentialReq struct {
|
||||
OperationID string `json:"operationID"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type Pagination struct {
|
||||
PageNumber int32 `json:"pageNumber" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type GetJoinedSuperGroupListReq struct {
|
||||
GetJoinedGroupListReq
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
type Swagger400Resp struct {
|
||||
ErrCode int32 `json:"errCode" example:"400"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import "mime/multipart"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import (
|
||||
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
|
||||
@@ -1,4 +1,4 @@
|
||||
package api_struct
|
||||
package apistruct
|
||||
|
||||
import "Open_IM/pkg/proto/office"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/common/constant"
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
type CallbackBeforeAddFriendReq struct {
|
||||
CallbackCommand string `json:"callbackCommand"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/proto/group"
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/proto/msg"
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
type CallbackUserOnlineReq struct {
|
||||
UserStatusCallbackReq
|
||||
@@ -1,4 +1,4 @@
|
||||
package callback_struct
|
||||
package callbackstruct
|
||||
|
||||
import common "Open_IM/pkg/proto/sdk_ws"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/api_struct"
|
||||
@@ -47,10 +47,10 @@ type ReduceUserRegisterAddFriendIDListResponse struct {
|
||||
|
||||
type GetUserRegisterAddFriendIDListRequest struct {
|
||||
OperationID string `json:"operationID" binding:"required"`
|
||||
api_struct.RequestPagination
|
||||
apistruct.RequestPagination
|
||||
}
|
||||
|
||||
type GetUserRegisterAddFriendIDListResponse struct {
|
||||
Users []*server_api_params.UserInfo `json:"users"`
|
||||
api_struct.ResponsePagination
|
||||
apistruct.ResponsePagination
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
type RequestPagination struct {
|
||||
PageNumber int `json:"pageNumber" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
type GetFriendsReq struct {
|
||||
OperationID string `json:"operationID"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
type GroupResponse struct {
|
||||
GroupOwnerName string `json:"GroupOwnerName"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
import (
|
||||
pbCommon "Open_IM/pkg/proto/sdk_ws"
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
type GetStatisticsRequest struct {
|
||||
From string `json:"from" binding:"required"`
|
||||
@@ -1,4 +1,4 @@
|
||||
package cms_struct
|
||||
package cmsstruct
|
||||
|
||||
type UserResponse struct {
|
||||
FaceURL string `json:"faceURL"`
|
||||
Vendored
+21
@@ -33,6 +33,27 @@ type GroupCache interface {
|
||||
DelGroupsInfo(ctx context.Context, groupID string) (err error)
|
||||
GetGroupInfo(ctx context.Context, groupID string, fn func(ctx context.Context, groupID string) (group *relationTb.GroupModel, err error)) (group *relationTb.GroupModel, err error)
|
||||
DelGroupInfo(ctx context.Context, groupID string) (err error)
|
||||
|
||||
BatchDelJoinedSuperGroupIDs(ctx context.Context, userIDs []string, fn func(ctx context.Context, userIDs []string) error) (err error)
|
||||
|
||||
GetJoinedSuperGroupIDs(ctx context.Context, userID string, fn func(ctx context.Context, userID string) (joinedSuperGroupIDs []string, err error)) (joinedSuperGroupIDs []string, err error)
|
||||
DelJoinedSuperGroupIDs(ctx context.Context, userID string, fn func(ctx context.Context, userID string) error) (err error)
|
||||
|
||||
GetGroupMembersHash(ctx context.Context, groupID string, fn func(ctx context.Context, groupID string) (hashCodeUint64 uint64, err error)) (hashCodeUint64 uint64, err error)
|
||||
DelGroupMembersHash(ctx context.Context, groupID string) (err error)
|
||||
|
||||
GetGroupMemberIDs(ctx context.Context, groupID string, fn func(ctx context.Context, groupID string) (groupMemberIDs []string, err error)) (groupMemberIDs []string, err error)
|
||||
DelGroupMemberIDs(ctx context.Context, groupID string)
|
||||
|
||||
GetJoinedGroupIDs(ctx context.Context, userID string, fn func(ctx context.Context, userID string) (joinedGroupIDs []string, err error)) (joinedGroupIDs []string, err error)
|
||||
DelJoinedGroupIDs(ctx context.Context, userID string) (err error)
|
||||
|
||||
GetGroupMemberInfo(ctx context.Context, groupID, userID string, fn func(ctx context.Context, groupID, userID string) (groupMember *relationTb.GroupMemberModel, err error)) (groupMember *relationTb.GroupMemberModel, err error)
|
||||
GetGroupMembersInfo(ctx context.Context, count, offset int32, groupID string, fn func(ctx context.Context, count, offset int32, groupID string) (groupMembers []*relationTb.GroupMemberModel, err error)) (groupMembers []*relationTb.GroupMemberModel, err error)
|
||||
DelGroupMemberInfo(ctx context.Context, groupID, userID string) (err error)
|
||||
|
||||
GetGroupMemberNum(ctx context.Context, groupID string, fn func(ctx context.Context, groupID string) (num int, err error)) (num int, err error)
|
||||
DelGroupMemberNum(ctx context.Context, groupID string) (err error)
|
||||
}
|
||||
|
||||
type GroupCacheRedis struct {
|
||||
|
||||
@@ -274,6 +274,7 @@ func (g *GroupDataBase) DismissGroup(ctx context.Context, groupID string) error
|
||||
return err
|
||||
}
|
||||
return g.groupMemberDB.DeleteGroup(ctx, []string{groupID}, tx)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package localcache
|
||||
|
||||
import (
|
||||
discoveryRegistry "Open_IM/pkg/discovery_registry"
|
||||
discoveryRegistry "Open_IM/pkg/discoveryregistry"
|
||||
"context"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package localcache
|
||||
import (
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/common/constant"
|
||||
discoveryRegistry "Open_IM/pkg/discovery_registry"
|
||||
discoveryRegistry "Open_IM/pkg/discoveryregistry"
|
||||
"Open_IM/pkg/proto/group"
|
||||
"context"
|
||||
"sync"
|
||||
@@ -52,6 +52,7 @@ func (g *GroupLocalCache) GetGroupMemberIDs(ctx context.Context, groupID string)
|
||||
if ok && localHashInfo.memberListHash == resp.GroupAbstractInfos[0].GroupMemberListHash {
|
||||
return localHashInfo.userIDs, nil
|
||||
}
|
||||
|
||||
groupMembersResp, err := client.GetGroupMemberList(ctx, &group.GetGroupMemberListReq{
|
||||
GroupID: groupID,
|
||||
})
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
package discoveryRegistry
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package discoveryRegistry
|
||||
package discoveryregistry
|
||||
|
||||
import (
|
||||
"google.golang.org/grpc"
|
||||
@@ -1,4 +1,4 @@
|
||||
package discoveryRegistry
|
||||
package discoveryregistry
|
||||
|
||||
import "google.golang.org/grpc"
|
||||
|
||||
Reference in New Issue
Block a user