Files
open-im-server/pkg/cms_api_struct/admin.go
T

40 lines
1.0 KiB
Go
Raw Normal View History

2022-01-21 18:39:57 +08:00
package cms_api_struct
2022-02-12 17:13:31 +08:00
2022-08-12 18:37:51 +08:00
import server_api_params "Open_IM/pkg/proto/sdk_ws"
2022-05-10 10:44:43 +08:00
2022-02-12 17:13:31 +08:00
type AdminLoginRequest struct {
AdminName string `json:"admin_name" binding:"required"`
2022-05-10 10:44:43 +08:00
Secret string `json:"secret" binding:"required"`
2022-02-12 17:13:31 +08:00
}
type AdminLoginResponse struct {
Token string `json:"token"`
2022-05-10 10:44:43 +08:00
}
2022-08-12 18:37:51 +08:00
type AddUserRegisterAddFriendIDListRequest struct {
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
2022-05-10 10:44:43 +08:00
}
2022-08-12 18:37:51 +08:00
type AddUserRegisterAddFriendIDListResponse struct {
2022-05-10 10:44:43 +08:00
}
2022-08-12 18:37:51 +08:00
type ReduceUserRegisterAddFriendIDListRequest struct {
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
2022-08-12 19:13:08 +08:00
Operation int32 `json:"operation"`
2022-08-12 18:37:51 +08:00
}
type ReduceUserRegisterAddFriendIDListResponse struct {
}
type GetUserRegisterAddFriendIDListRequest struct {
2022-05-10 10:44:43 +08:00
OperationID string `json:"operationID" binding:"required"`
2022-08-12 19:13:08 +08:00
RequestPaginationBody
2022-08-12 18:37:51 +08:00
}
type GetUserRegisterAddFriendIDListResponse struct {
2022-08-12 19:13:08 +08:00
Users []*server_api_params.UserInfo `json:"users"`
2022-08-12 18:37:51 +08:00
ResponsePagination
2022-05-10 10:44:43 +08:00
}