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

133 lines
4.2 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"
2022-08-21 21:54:32 +08:00
server_api_params "Open_IM/pkg/proto/sdk_ws"
2021-12-28 20:44:19 +08:00
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-29 21:55:07 +08:00
OperationID string `json:"operationID" binding:"required"`
DeleteUserIDList []string `json:"deleteUserIDList" binding:"required"`
2021-12-28 15:33:47 +08:00
}
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"`
}
2022-02-24 18:08:53 +08:00
2022-06-29 18:48:17 +08:00
type ManagementSendMsg struct {
2022-07-26 15:16:46 +08:00
OperationID string `json:"operationID" binding:"required"`
BusinessOperationID string `json:"businessOperationID"`
SendID string `json:"sendID" binding:"required"`
GroupID string `json:"groupID" `
SenderNickname string `json:"senderNickname" `
SenderFaceURL string `json:"senderFaceURL" `
SenderPlatformID int32 `json:"senderPlatformID"`
2022-06-29 18:48:17 +08:00
//ForceList []string `json:"forceList" `
2022-08-21 21:55:46 +08:00
Content map[string]interface{} `json:"content" binding:"required" swaggerignore:"true"`
ContentType int32 `json:"contentType" binding:"required"`
SessionType int32 `json:"sessionType" binding:"required"`
IsOnlineOnly bool `json:"isOnlineOnly"`
NotOfflinePush bool `json:"notOfflinePush"`
OfflinePushInfo *server_api_params.OfflinePushInfo `json:"offlinePushInfo"`
2022-06-29 18:48:17 +08:00
}
2022-05-26 18:02:00 +08:00
type ManagementSendMsgReq struct {
2022-06-29 18:48:17 +08:00
ManagementSendMsg
RecvID string `json:"recvID" `
2022-05-26 18:02:00 +08:00
}
2022-02-24 18:08:53 +08:00
type ManagementSendMsgResp struct {
CommResp
ResultList server_api_params.UserSendMsgResp `json:"data"`
}
2022-05-26 18:02:00 +08:00
type ManagementBatchSendMsgReq struct {
2022-06-29 18:48:17 +08:00
ManagementSendMsg
2022-08-21 21:54:32 +08:00
IsSendAll bool `json:"isSendAll"`
2022-05-26 18:02:00 +08:00
RecvIDList []string `json:"recvIDList"`
}
type ManagementBatchSendMsgResp struct {
CommResp
Data struct {
2022-07-28 18:14:58 +08:00
ResultList []*SingleReturnResult `json:"resultList"`
2022-05-26 18:02:00 +08:00
FailedIDList []string
} `json:"data"`
}
2022-07-28 18:14:58 +08:00
type SingleReturnResult struct {
ServerMsgID string `json:"serverMsgID"`
ClientMsgID string `json:"clientMsgID"`
SendTime int64 `json:"sendTime"`
RecvID string `json:"recvID" `
}
2022-07-26 15:16:46 +08:00
type CheckMsgIsSendSuccessReq struct {
2022-07-26 15:41:16 +08:00
OperationID string `json:"operationID"`
2022-07-26 15:16:46 +08:00
}
type CheckMsgIsSendSuccessResp struct {
CommResp
Status int32 `json:"status"`
}
2022-08-26 17:51:01 +08:00
type GetUsersReq struct {
OperationID string `json:"operationID" binding:"required"`
UserName string `json:"userName"`
UserID string `json:"userID"`
2022-09-06 20:35:32 +08:00
Content string `json:"content"`
2022-08-26 17:51:01 +08:00
PageNumber int32 `json:"pageNumber" binding:"required"`
ShowNumber int32 `json:"showNumber" binding:"required"`
}
2022-09-02 11:26:25 +08:00
type CMSUser struct {
UserID string `json:"userID"`
Nickname string `json:"nickname"`
FaceURL string `json:"faceURL"`
Gender int32 `json:"gender"`
PhoneNumber string `json:"phoneNumber"`
Birth uint32 `json:"birth"`
Email string `json:"email"`
Ex string `json:"ex"`
CreateIp string `json:"createIp"`
CreateTime uint32 `json:"createTime"`
LastLoginIp string `json:"LastLoginIp"`
LastLoginTime uint32 `json:"LastLoginTime"`
AppMangerLevel int32 `json:"appMangerLevel"`
GlobalRecvMsgOpt int32 `json:"globalRecvMsgOpt"`
IsBlock bool `json:"isBlock"`
}
2022-08-26 17:51:01 +08:00
type GetUsersResp struct {
CommResp
Data struct {
2022-09-02 11:26:25 +08:00
UserList []*CMSUser `json:"userList"`
TotalNum int32 `json:"totalNum"`
CurrentPage int32 `json:"currentPage"`
ShowNumber int32 `json:"showNumber"`
2022-08-26 17:51:01 +08:00
} `json:"data"`
}