Documentation ¶
Index ¶
- func CheckUserAccount(token string, userIDs []string) error
- func ForceLogout(token, userID string, platformID int) error
- func GetUsers(token string, pageNumber, showNumber int) error
- func GetUsersInfo(token string, userIDs []string) error
- func GetUsersOnlineStatus(token string, userIDs []string) error
- func UpdateUserInfo(token, userID, nickname, faceURL string) error
- type CheckUserAccountRequest
- type ForceLogoutRequest
- type GetUsersOnlineStatusRequest
- type GetUsersRequest
- type Pagination
- type UserInfoRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserAccount ¶
CheckUserAccount checks if the user accounts exist.
func ForceLogout ¶
ForceLogout forces a user to log out.
func GetUsersInfo ¶
GetUsersInfo retrieves detailed information for a list of user IDs.
func GetUsersOnlineStatus ¶
GetUsersOnlineStatus retrieves the online status for a list of user IDs.
func UpdateUserInfo ¶
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 ¶
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 ¶
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.