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/cms_api_struct/admin.go

44 lines
1.1 KiB

3 years ago
package cms_api_struct
3 years ago
2 years ago
import (
"Open_IM/pkg/base_info"
server_api_params "Open_IM/pkg/proto/sdk_ws"
)
3 years ago
3 years ago
type AdminLoginRequest struct {
2 years ago
AdminName string `json:"adminID" binding:"required"`
2 years ago
Secret string `json:"secret" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type AdminLoginResponse struct {
Token string `json:"token"`
3 years ago
}
2 years ago
type AddUserRegisterAddFriendIDListRequest struct {
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
3 years ago
}
2 years ago
type AddUserRegisterAddFriendIDListResponse struct {
3 years ago
}
2 years ago
type ReduceUserRegisterAddFriendIDListRequest struct {
OperationID string `json:"operationID" binding:"required"`
UserIDList []string `json:"userIDList" binding:"required"`
2 years ago
Operation int32 `json:"operation"`
2 years ago
}
type ReduceUserRegisterAddFriendIDListResponse struct {
}
type GetUserRegisterAddFriendIDListRequest struct {
3 years ago
OperationID string `json:"operationID" binding:"required"`
2 years ago
base_info.RequestPagination
2 years ago
}
type GetUserRegisterAddFriendIDListResponse struct {
2 years ago
Users []*server_api_params.UserInfo `json:"users"`
2 years ago
base_info.ResponsePagination
3 years ago
}