|
|
@ -4,13 +4,13 @@ import (
|
|
|
|
sdkws "OpenIM/pkg/proto/sdkws"
|
|
|
|
sdkws "OpenIM/pkg/proto/sdkws"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type CommResp struct {
|
|
|
|
type struct {
|
|
|
|
ErrCode int32 `json:"errCode"`
|
|
|
|
ErrCode int32 `json:"errCode"`
|
|
|
|
ErrMsg string `json:"errMsg"`
|
|
|
|
ErrMsg string `json:"errMsg"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type CommDataResp struct {
|
|
|
|
type CommDataResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
Data []map[string]interface{} `json:"data"`
|
|
|
|
Data []map[string]interface{} `json:"data"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ type KickGroupMemberReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type KickGroupMemberResp struct {
|
|
|
|
type KickGroupMemberResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
//UserIDResultList []*UserIDResult `json:"data"`
|
|
|
|
//UserIDResultList []*UserIDResult `json:"data"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ type GetGroupMembersInfoReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetGroupMembersInfoResp struct {
|
|
|
|
type GetGroupMembersInfoResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -43,7 +43,7 @@ type InviteUserToGroupReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type InviteUserToGroupResp struct {
|
|
|
|
type InviteUserToGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
//UserIDResultList []*UserIDResult `json:"data"`
|
|
|
|
//UserIDResultList []*UserIDResult `json:"data"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ type GetJoinedGroupListReq struct {
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"`
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetJoinedGroupListResp struct {
|
|
|
|
type GetJoinedGroupListResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
GroupInfoList []*sdkws.GroupInfo `json:"-"`
|
|
|
|
GroupInfoList []*sdkws.GroupInfo `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -64,7 +64,7 @@ type GetGroupMemberListReq struct {
|
|
|
|
OperationID string `json:"operationID"`
|
|
|
|
OperationID string `json:"operationID"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetGroupMemberListResp struct {
|
|
|
|
type GetGroupMemberListResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
NextSeq int32 `json:"nextSeq"`
|
|
|
|
NextSeq int32 `json:"nextSeq"`
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
@ -77,7 +77,7 @@ type GetGroupAllMemberReq struct {
|
|
|
|
Count int32 `json:"count"`
|
|
|
|
Count int32 `json:"count"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetGroupAllMemberResp struct {
|
|
|
|
type GetGroupAllMemberResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -90,7 +90,7 @@ type GetGroupAllMemberResp struct {
|
|
|
|
// Count int32 `json:"count" binding:"required"`
|
|
|
|
// Count int32 `json:"count" binding:"required"`
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
//type GetGroupAllMemberListBySplitResp struct {
|
|
|
|
//type GetGroupAllMemberListBySplitResp struct {
|
|
|
|
// CommResp
|
|
|
|
//
|
|
|
|
// MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
// MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
|
|
|
// Map []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
// Map []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
//}
|
|
|
|
//}
|
|
|
@ -108,7 +108,7 @@ type CreateGroupReq struct {
|
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
GroupID string `json:"groupID"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type CreateGroupResp struct {
|
|
|
|
type CreateGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
GroupInfo sdkws.GroupInfo `json:"-"`
|
|
|
|
GroupInfo sdkws.GroupInfo `json:"-"`
|
|
|
|
Data map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -118,7 +118,7 @@ type GetGroupApplicationListReq struct {
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"` //作为管理员或群主收到的 进群申请
|
|
|
|
FromUserID string `json:"fromUserID" binding:"required"` //作为管理员或群主收到的 进群申请
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetGroupApplicationListResp struct {
|
|
|
|
type GetGroupApplicationListResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
GroupRequestList []*sdkws.GroupRequest `json:"-"`
|
|
|
|
GroupRequestList []*sdkws.GroupRequest `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -137,7 +137,7 @@ type GetGroupInfoReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type GetGroupInfoResp struct {
|
|
|
|
type GetGroupInfoResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
GroupInfoList []*sdkws.GroupInfo `json:"-"`
|
|
|
|
GroupInfoList []*sdkws.GroupInfo `json:"-"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -171,7 +171,7 @@ type ApplicationGroupResponseReq struct {
|
|
|
|
HandleResult int32 `json:"handleResult" binding:"required,oneof=-1 1"`
|
|
|
|
HandleResult int32 `json:"handleResult" binding:"required,oneof=-1 1"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type ApplicationGroupResponseResp struct {
|
|
|
|
type ApplicationGroupResponseResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type JoinGroupReq struct {
|
|
|
|
type JoinGroupReq struct {
|
|
|
@ -183,7 +183,7 @@ type JoinGroupReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type JoinGroupResp struct {
|
|
|
|
type JoinGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type QuitGroupReq struct {
|
|
|
|
type QuitGroupReq struct {
|
|
|
@ -191,7 +191,7 @@ type QuitGroupReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type QuitGroupResp struct {
|
|
|
|
type QuitGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupInfoReq struct {
|
|
|
|
type SetGroupInfoReq struct {
|
|
|
@ -208,7 +208,7 @@ type SetGroupInfoReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupInfoResp struct {
|
|
|
|
type SetGroupInfoResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type TransferGroupOwnerReq struct {
|
|
|
|
type TransferGroupOwnerReq struct {
|
|
|
@ -218,7 +218,7 @@ type TransferGroupOwnerReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type TransferGroupOwnerResp struct {
|
|
|
|
type TransferGroupOwnerResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type DismissGroupReq struct {
|
|
|
|
type DismissGroupReq struct {
|
|
|
@ -226,7 +226,7 @@ type DismissGroupReq struct {
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type DismissGroupResp struct {
|
|
|
|
type DismissGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type MuteGroupMemberReq struct {
|
|
|
|
type MuteGroupMemberReq struct {
|
|
|
@ -236,7 +236,7 @@ type MuteGroupMemberReq struct {
|
|
|
|
MutedSeconds uint32 `json:"mutedSeconds" binding:"required"`
|
|
|
|
MutedSeconds uint32 `json:"mutedSeconds" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type MuteGroupMemberResp struct {
|
|
|
|
type MuteGroupMemberResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type CancelMuteGroupMemberReq struct {
|
|
|
|
type CancelMuteGroupMemberReq struct {
|
|
|
@ -245,7 +245,7 @@ type CancelMuteGroupMemberReq struct {
|
|
|
|
UserID string `json:"userID" binding:"required"`
|
|
|
|
UserID string `json:"userID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type CancelMuteGroupMemberResp struct {
|
|
|
|
type CancelMuteGroupMemberResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type MuteGroupReq struct {
|
|
|
|
type MuteGroupReq struct {
|
|
|
@ -253,7 +253,7 @@ type MuteGroupReq struct {
|
|
|
|
GroupID string `json:"groupID" binding:"required"`
|
|
|
|
GroupID string `json:"groupID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type MuteGroupResp struct {
|
|
|
|
type MuteGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type CancelMuteGroupReq struct {
|
|
|
|
type CancelMuteGroupReq struct {
|
|
|
@ -261,7 +261,7 @@ type CancelMuteGroupReq struct {
|
|
|
|
GroupID string `json:"groupID" binding:"required"`
|
|
|
|
GroupID string `json:"groupID" binding:"required"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type CancelMuteGroupResp struct {
|
|
|
|
type CancelMuteGroupResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupMemberNicknameReq struct {
|
|
|
|
type SetGroupMemberNicknameReq struct {
|
|
|
@ -272,7 +272,7 @@ type SetGroupMemberNicknameReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupMemberNicknameResp struct {
|
|
|
|
type SetGroupMemberNicknameResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupMemberInfoReq struct {
|
|
|
|
type SetGroupMemberInfoReq struct {
|
|
|
@ -286,7 +286,7 @@ type SetGroupMemberInfoReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type SetGroupMemberInfoResp struct {
|
|
|
|
type SetGroupMemberInfoResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type GetGroupAbstractInfoReq struct {
|
|
|
|
type GetGroupAbstractInfoReq struct {
|
|
|
@ -295,7 +295,7 @@ type GetGroupAbstractInfoReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type GetGroupAbstractInfoResp struct {
|
|
|
|
type GetGroupAbstractInfoResp struct {
|
|
|
|
CommResp
|
|
|
|
|
|
|
|
GroupMemberNumber int32 `json:"groupMemberNumber"`
|
|
|
|
GroupMemberNumber int32 `json:"groupMemberNumber"`
|
|
|
|
GroupMemberListHash uint64 `json:"groupMemberListHash"`
|
|
|
|
GroupMemberListHash uint64 `json:"groupMemberListHash"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|