mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +08:00
cobra
This commit is contained in:
parent
9ce50095b5
commit
a87a8c1fb3
@ -4,16 +4,6 @@ import (
|
|||||||
sdkws "OpenIM/pkg/proto/sdkws"
|
sdkws "OpenIM/pkg/proto/sdkws"
|
||||||
)
|
)
|
||||||
|
|
||||||
type struct {
|
|
||||||
ErrCode int32 `json:"errCode"`
|
|
||||||
ErrMsg string `json:"errMsg"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type CommDataResp struct {
|
|
||||||
|
|
||||||
Data []map[string]interface{} `json:"data"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type KickGroupMemberReq struct {
|
type KickGroupMemberReq struct {
|
||||||
GroupID string `json:"groupID" binding:"required"`
|
GroupID string `json:"groupID" binding:"required"`
|
||||||
KickedUserIDList []string `json:"kickedUserIDList" binding:"required"`
|
KickedUserIDList []string `json:"kickedUserIDList" binding:"required"`
|
||||||
@ -31,7 +21,6 @@ type GetGroupMembersInfoReq struct {
|
|||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type GetGroupMembersInfoResp struct {
|
type GetGroupMembersInfoResp struct {
|
||||||
|
|
||||||
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
||||||
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
||||||
}
|
}
|
||||||
@ -52,7 +41,6 @@ type GetJoinedGroupListReq struct {
|
|||||||
FromUserID string `json:"fromUserID" binding:"required"`
|
FromUserID string `json:"fromUserID" binding:"required"`
|
||||||
}
|
}
|
||||||
type GetJoinedGroupListResp struct {
|
type GetJoinedGroupListResp struct {
|
||||||
|
|
||||||
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 +52,6 @@ type GetGroupMemberListReq struct {
|
|||||||
OperationID string `json:"operationID"`
|
OperationID string `json:"operationID"`
|
||||||
}
|
}
|
||||||
type GetGroupMemberListResp struct {
|
type GetGroupMemberListResp struct {
|
||||||
|
|
||||||
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 +64,6 @@ type GetGroupAllMemberReq struct {
|
|||||||
Count int32 `json:"count"`
|
Count int32 `json:"count"`
|
||||||
}
|
}
|
||||||
type GetGroupAllMemberResp struct {
|
type GetGroupAllMemberResp struct {
|
||||||
|
|
||||||
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
MemberList []*sdkws.GroupMemberFullInfo `json:"-"`
|
||||||
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
|
||||||
}
|
}
|
||||||
@ -108,7 +94,6 @@ type CreateGroupReq struct {
|
|||||||
GroupID string `json:"groupID"`
|
GroupID string `json:"groupID"`
|
||||||
}
|
}
|
||||||
type CreateGroupResp struct {
|
type CreateGroupResp struct {
|
||||||
|
|
||||||
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 +103,6 @@ type GetGroupApplicationListReq struct {
|
|||||||
FromUserID string `json:"fromUserID" binding:"required"` //作为管理员或群主收到的 进群申请
|
FromUserID string `json:"fromUserID" binding:"required"` //作为管理员或群主收到的 进群申请
|
||||||
}
|
}
|
||||||
type GetGroupApplicationListResp struct {
|
type GetGroupApplicationListResp struct {
|
||||||
|
|
||||||
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 +121,6 @@ type GetGroupInfoReq struct {
|
|||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type GetGroupInfoResp struct {
|
type GetGroupInfoResp struct {
|
||||||
|
|
||||||
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 +154,6 @@ 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 {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type JoinGroupReq struct {
|
type JoinGroupReq struct {
|
||||||
@ -183,7 +165,6 @@ type JoinGroupReq struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type JoinGroupResp struct {
|
type JoinGroupResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type QuitGroupReq struct {
|
type QuitGroupReq struct {
|
||||||
@ -191,7 +172,6 @@ type QuitGroupReq struct {
|
|||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type QuitGroupResp struct {
|
type QuitGroupResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupInfoReq struct {
|
type SetGroupInfoReq struct {
|
||||||
@ -208,7 +188,6 @@ type SetGroupInfoReq struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupInfoResp struct {
|
type SetGroupInfoResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type TransferGroupOwnerReq struct {
|
type TransferGroupOwnerReq struct {
|
||||||
@ -218,7 +197,6 @@ type TransferGroupOwnerReq struct {
|
|||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type TransferGroupOwnerResp struct {
|
type TransferGroupOwnerResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type DismissGroupReq struct {
|
type DismissGroupReq struct {
|
||||||
@ -226,7 +204,6 @@ type DismissGroupReq struct {
|
|||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type DismissGroupResp struct {
|
type DismissGroupResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MuteGroupMemberReq struct {
|
type MuteGroupMemberReq struct {
|
||||||
@ -236,7 +213,6 @@ type MuteGroupMemberReq struct {
|
|||||||
MutedSeconds uint32 `json:"mutedSeconds" binding:"required"`
|
MutedSeconds uint32 `json:"mutedSeconds" binding:"required"`
|
||||||
}
|
}
|
||||||
type MuteGroupMemberResp struct {
|
type MuteGroupMemberResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type CancelMuteGroupMemberReq struct {
|
type CancelMuteGroupMemberReq struct {
|
||||||
@ -245,7 +221,6 @@ type CancelMuteGroupMemberReq struct {
|
|||||||
UserID string `json:"userID" binding:"required"`
|
UserID string `json:"userID" binding:"required"`
|
||||||
}
|
}
|
||||||
type CancelMuteGroupMemberResp struct {
|
type CancelMuteGroupMemberResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MuteGroupReq struct {
|
type MuteGroupReq struct {
|
||||||
@ -253,7 +228,6 @@ type MuteGroupReq struct {
|
|||||||
GroupID string `json:"groupID" binding:"required"`
|
GroupID string `json:"groupID" binding:"required"`
|
||||||
}
|
}
|
||||||
type MuteGroupResp struct {
|
type MuteGroupResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type CancelMuteGroupReq struct {
|
type CancelMuteGroupReq struct {
|
||||||
@ -261,7 +235,6 @@ type CancelMuteGroupReq struct {
|
|||||||
GroupID string `json:"groupID" binding:"required"`
|
GroupID string `json:"groupID" binding:"required"`
|
||||||
}
|
}
|
||||||
type CancelMuteGroupResp struct {
|
type CancelMuteGroupResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMemberNicknameReq struct {
|
type SetGroupMemberNicknameReq struct {
|
||||||
@ -272,7 +245,6 @@ type SetGroupMemberNicknameReq struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMemberNicknameResp struct {
|
type SetGroupMemberNicknameResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMemberInfoReq struct {
|
type SetGroupMemberInfoReq struct {
|
||||||
@ -286,7 +258,6 @@ type SetGroupMemberInfoReq struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SetGroupMemberInfoResp struct {
|
type SetGroupMemberInfoResp struct {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetGroupAbstractInfoReq struct {
|
type GetGroupAbstractInfoReq struct {
|
||||||
@ -295,7 +266,6 @@ type GetGroupAbstractInfoReq struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetGroupAbstractInfoResp struct {
|
type GetGroupAbstractInfoResp struct {
|
||||||
|
|
||||||
GroupMemberNumber int32 `json:"groupMemberNumber"`
|
GroupMemberNumber int32 `json:"groupMemberNumber"`
|
||||||
GroupMemberListHash uint64 `json:"groupMemberListHash"`
|
GroupMemberListHash uint64 `json:"groupMemberListHash"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user