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

39 lines
1.1 KiB
Go
Raw Normal View History

2021-12-28 15:33:47 +08:00
package base_info
2021-12-28 20:44:19 +08:00
import (
pbRelay "Open_IM/pkg/proto/relay"
pbUser "Open_IM/pkg/proto/user"
)
2021-12-28 15:33:47 +08:00
2021-12-28 20:44:19 +08:00
type DeleteUsersReq struct {
2021-12-28 15:33:47 +08:00
OperationID string `json:"operationID" binding:"required"`
DeleteUidList []string `json:"deleteUidList" binding:"required"`
}
2021-12-28 20:44:19 +08:00
type DeleteUsersResp struct {
CommResp
FailedUserIDList []string `json:"data"`
}
type GetAllUsersUidReq struct {
2021-12-28 15:33:47 +08:00
OperationID string `json:"operationID" binding:"required"`
}
2021-12-28 20:44:19 +08:00
type GetAllUsersUidResp struct {
CommResp
UserIDList []string `json:"data"`
}
type GetUsersOnlineStatusReq struct {
2021-12-28 15:33:47 +08:00
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required,lte=200"`
}
2021-12-28 20:44:19 +08:00
type GetUsersOnlineStatusResp struct {
CommResp
SuccessResult []*pbRelay.GetUsersOnlineStatusResp_SuccessResult `json:"data"`
}
type AccountCheckReq struct {
2021-12-29 19:35:04 +08:00
OperationID string `json:"operationID" binding:"required"`
CheckUserIDList []string `json:"checkUserIDList" binding:"required,lte=100"`
2021-12-28 15:33:47 +08:00
}
2021-12-28 20:44:19 +08:00
type AccountCheckResp struct {
CommResp
ResultList []*pbUser.AccountCheckResp_SingleUserStatus `json:"data"`
}