user

package
v3.8.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserAccount

func CheckUserAccount(token string, userIDs []string) error

CheckUserAccount checks if the user accounts exist.

func ForceLogout

func ForceLogout(token, userID string, platformID int) error

ForceLogout forces a user to log out.

func GetUsers

func GetUsers(token string, pageNumber, showNumber int) error

GetUsers retrieves a list of users with pagination.

func GetUsersInfo

func GetUsersInfo(token string, userIDs []string) error

GetUsersInfo retrieves detailed information for a list of user IDs.

func GetUsersOnlineStatus

func GetUsersOnlineStatus(token string, userIDs []string) error

GetUsersOnlineStatus retrieves the online status for a list of user IDs.

func UpdateUserInfo

func UpdateUserInfo(token, userID, nickname, faceURL string) error

UpdateUserInfo updates the information for a user.

Types

type CheckUserAccountRequest

type CheckUserAccountRequest struct {
	CheckUserIDs []string `json:"checkUserIDs"`
}

CheckUserAccountRequest represents a request to check a user account.

type ForceLogoutRequest

type ForceLogoutRequest struct {
	PlatformID int    `json:"platformID"`
	UserID     string `json:"userID"`
}

ForceLogoutRequest represents a request to force a user logout.

type GetUsersOnlineStatusRequest

type GetUsersOnlineStatusRequest struct {
	UserIDs []string `json:"userIDs"`
}

GetUsersOnlineStatusRequest represents a request to get users' online status.

type GetUsersRequest

type GetUsersRequest struct {
	Pagination Pagination `json:"pagination"`
}

GetUsersRequest represents a request to get a list of users.

type Pagination

type Pagination struct {
	PageNumber int `json:"pageNumber"`
	ShowNumber int `json:"showNumber"`
}

Pagination specifies the page number and number of items per page.

type UserInfoRequest

type UserInfoRequest struct {
	UserIDs  []string       `json:"userIDs,omitempty"`
	UserInfo *gettoken.User `json:"userInfo,omitempty"`
}

UserInfoRequest represents a request to get or update user information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL