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

59 lines
1.5 KiB
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-02-24 18:08:53 +08:00
UserInfoList []*open_im_sdk.PublicUserInfo `json:"-"`
2022-06-29 11:18:19 +08:00
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
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"`
}
2022-06-16 19:33:35 +08:00
type SetGlobalRecvMessageOptReq struct {
OperationID string `json:"operationID" binding:"required"`
GlobalRecvMsgOpt *int32 `json:"globalRecvMsgOpt" binding:"omitempty,oneof=0 1 2"`
}
type SetGlobalRecvMessageOptResp struct {
CommResp
}
2021-12-28 18:18:35 +08:00
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:"-"`
2022-06-29 11:18:19 +08:00
Data map[string]interface{} `json:"data" swaggerignore:"true"`
2022-01-13 11:10:29 +08:00
}
2022-04-28 15:13:39 +08:00
type GetFriendIDListFromCacheReq struct {
OperationID string `json:"operationID" binding:"required"`
}
type GetFriendIDListFromCacheResp struct {
CommResp
UserIDList []string `json:"userIDList" binding:"required"`
}
type GetBlackIDListFromCacheReq struct {
OperationID string `json:"operationID" binding:"required"`
}
type GetBlackIDListFromCacheResp struct {
CommResp
UserIDList []string `json:"userIDList" binding:"required"`
}