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