mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 19:46:57 +08:00
Refactor code
This commit is contained in:
parent
e90be1bb88
commit
cc5125d51d
@ -53,8 +53,8 @@ func main() {
|
|||||||
groupRouterGroup.POST("/quit_group", group.QuitGroup) //1
|
groupRouterGroup.POST("/quit_group", group.QuitGroup) //1
|
||||||
groupRouterGroup.POST("/group_application_response", group.ApplicationGroupResponse)
|
groupRouterGroup.POST("/group_application_response", group.ApplicationGroupResponse)
|
||||||
groupRouterGroup.POST("/transfer_group", group.TransferGroupOwner)
|
groupRouterGroup.POST("/transfer_group", group.TransferGroupOwner)
|
||||||
groupRouterGroup.POST("/get_group_applicationList", group.GetGroupApplicationList)
|
groupRouterGroup.POST("/get_group_applicationList", group.GetGroupApplicationList) //1
|
||||||
groupRouterGroup.POST("/get_groups_info", group.GetGroupsInfo)
|
groupRouterGroup.POST("/get_groups_info", group.GetGroupsInfo) //1
|
||||||
groupRouterGroup.POST("/kick_group", group.KickGroupMember)
|
groupRouterGroup.POST("/kick_group", group.KickGroupMember)
|
||||||
groupRouterGroup.POST("/get_group_member_list", group.GetGroupMemberList)
|
groupRouterGroup.POST("/get_group_member_list", group.GetGroupMemberList)
|
||||||
groupRouterGroup.POST("/get_group_all_member_list", group.GetGroupAllMember)
|
groupRouterGroup.POST("/get_group_all_member_list", group.GetGroupAllMember)
|
||||||
|
@ -108,20 +108,20 @@ type GetGroupInfoResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ApplicationGroupResponseReq struct {
|
type ApplicationGroupResponseReq struct {
|
||||||
OperationID string `json:"groupIDList" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
GroupID string `json:"groupIDList" binding:"required"`
|
GroupID string `json:"groupID" binding:"required"`
|
||||||
FromUserID string `json:"groupIDList" binding:"required"`
|
FromUserID string `json:"fromUserID" binding:"required"`
|
||||||
HandledMsg string `json:"groupIDList" binding:"required"`
|
HandledMsg string `json:"handledMsg"`
|
||||||
HandleResult int32 `json:"groupIDList" binding:"required"`
|
HandleResult int32 `json:"handleResult" binding:"required"`
|
||||||
}
|
}
|
||||||
type ApplicationGroupResponseResp struct {
|
type ApplicationGroupResponseResp struct {
|
||||||
CommResp
|
CommResp
|
||||||
}
|
}
|
||||||
|
|
||||||
type JoinGroupReq struct {
|
type JoinGroupReq struct {
|
||||||
GroupID string `json:"groupID"`
|
GroupID string `json:"groupID" binding:"required"`
|
||||||
ReqMessage string `json:"reqMessage"`
|
ReqMessage string `json:"reqMessage"`
|
||||||
OperationID string `json:"operationID"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type JoinGroupResp struct {
|
type JoinGroupResp struct {
|
||||||
CommResp
|
CommResp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user