Refactor code

This commit is contained in:
wenxu12345
2022-01-13 11:10:29 +08:00
parent b495761283
commit 89eb39ca3e
5 changed files with 69 additions and 13 deletions
+14 -4
View File
@@ -4,17 +4,17 @@ import (
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
)
type GetUserInfoReq struct {
type GetUsersInfoReq struct {
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
}
type GetUserInfoResp struct {
type GetUsersInfoResp struct {
CommResp
UserInfoList []*open_im_sdk.UserInfo `json:"-"`
UserInfoList []*open_im_sdk.PublicUserInfo
Data []map[string]interface{} `json:"data"`
}
type UpdateUserInfoReq struct {
type UpdateSelfUserInfoReq struct {
UserInfo
OperationID string `json:"operationID" binding:"required"`
}
@@ -22,3 +22,13 @@ type UpdateUserInfoReq struct {
type UpdateUserInfoResp struct {
CommResp
}
type GetSelfUserInfoReq struct {
OperationID string `json:"operationID" binding:"required"`
UserID string `json:"userID" binding:"required"`
}
type GetSelfUserInfoResp struct {
CommResp
UserInfoList *open_im_sdk.UserInfo `json:"-"`
Data []map[string]interface{} `json:"data"`
}