You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/base_info/user_api_struct.go

59 lines
1.5 KiB

3 years ago
package base_info
import (
open_im_sdk "Open_IM/pkg/proto/sdk_ws"
)
3 years ago
type GetUsersInfoReq struct {
3 years ago
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
}
3 years ago
type GetUsersInfoResp struct {
3 years ago
CommResp
3 years ago
UserInfoList []*open_im_sdk.PublicUserInfo `json:"-"`
2 years ago
Data []map[string]interface{} `json:"data" swaggerignore:"true"`
3 years ago
}
3 years ago
3 years ago
type UpdateSelfUserInfoReq struct {
3 years ago
ApiUserInfo
3 years ago
OperationID string `json:"operationID" binding:"required"`
}
type SetGlobalRecvMessageOptReq struct {
OperationID string `json:"operationID" binding:"required"`
GlobalRecvMsgOpt *int32 `json:"globalRecvMsgOpt" binding:"omitempty,oneof=0 1 2"`
}
type SetGlobalRecvMessageOptResp struct {
CommResp
}
3 years ago
type UpdateUserInfoResp struct {
CommResp
}
3 years ago
type GetSelfUserInfoReq struct {
OperationID string `json:"operationID" binding:"required"`
UserID string `json:"userID" binding:"required"`
}
type GetSelfUserInfoResp struct {
CommResp
3 years ago
UserInfo *open_im_sdk.UserInfo `json:"-"`
2 years ago
Data map[string]interface{} `json:"data" swaggerignore:"true"`
3 years ago
}
3 years ago
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"`
}