Files
open-im-server/pkg/base_info/user_api_struct.go
T

35 lines
812 B
Go
Raw Normal View History

2021-12-27 16:48:05 +08:00
package base_info
import (
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
)
2022-01-13 11:10:29 +08:00
type GetUsersInfoReq struct {
2021-12-27 16:48:05 +08:00
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
}
2022-01-13 11:10:29 +08:00
type GetUsersInfoResp struct {
2021-12-27 16:48:05 +08:00
CommResp
2022-01-13 11:10:29 +08:00
UserInfoList []*open_im_sdk.PublicUserInfo
2021-12-31 09:25:11 +08:00
Data []map[string]interface{} `json:"data"`
2021-12-27 16:48:05 +08:00
}
2021-12-28 18:18:35 +08:00
2022-01-13 11:10:29 +08:00
type UpdateSelfUserInfoReq struct {
2022-01-19 18:14:53 +08:00
ApiUserInfo
2021-12-28 18:18:35 +08:00
OperationID string `json:"operationID" binding:"required"`
}
type UpdateUserInfoResp struct {
CommResp
}
2022-01-13 11:10:29 +08:00
type GetSelfUserInfoReq struct {
OperationID string `json:"operationID" binding:"required"`
UserID string `json:"userID" binding:"required"`
}
type GetSelfUserInfoResp struct {
CommResp
2022-01-18 20:27:46 +08:00
UserInfo *open_im_sdk.UserInfo `json:"-"`
Data map[string]interface{} `json:"data"`
2022-01-13 11:10:29 +08:00
}