profiles

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockUserFromSendingMessages

func BlockUserFromSendingMessages(jwtToken string, userId string) error

func GetUsersProfile

func GetUsersProfile(jwtToken string) (response.Profile, error)

func UnblockUser

func UnblockUser(jwtToken string, userId string) error

func UpdateUsername

func UpdateUsername(jwtToken string, username string) error

func UpdateUsersProfile

func UpdateUsersProfile(jwtToken string, reqBody ProfileReqBody) error

Types

type ProfileReqBody

type ProfileReqBody struct {
	FirstName   *string `json:"firstName"`
	MiddleName  *string `json:"middleName"`
	LastName    *string `json:"lastName"`
	PhoneNumber *string `json:"phoneNumber"`
}

Jump to

Keyboard shortcuts

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