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

57 lines
1.5 KiB

2 years ago
package cms_struct
3 years ago
2 years ago
import (
2 years ago
"Open_IM/pkg/api_struct"
2 years ago
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 {
2 years ago
Token string `json:"token"`
UserName string `json:"userName"`
FaceURL string `json:"faceURL"`
3 years ago
}
2 years ago
type GetUserTokenRequest struct {
UserID string `json:"userID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
PlatFormID int32 `json:"platformID" binding:"required"`
}
type GetUserTokenResponse struct {
Token string `json:"token"`
ExpTime int64 `json:"expTime"`
}
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
api_struct.RequestPagination
2 years ago
}
type GetUserRegisterAddFriendIDListResponse struct {
2 years ago
Users []*server_api_params.UserInfo `json:"users"`
2 years ago
api_struct.ResponsePagination
3 years ago
}