users

package
v0.0.0-...-d266086 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindUser

func FindUser(id int, user *models.User) error

func GetMe

func GetMe(c *fiber.Ctx) error

func GetUser

func GetUser(c *fiber.Ctx) error

func PostUser

func PostUser(c *fiber.Ctx) error

Types

type ApiMessage

type ApiMessage struct {
	StatusCode int    `json:"code"`
	Message    string `json:"message"`
}

type SignUpUser

type SignUpUser struct {
	Id        int64  `json:"id"`
	Username  string `json:"username"`
	AvatarURL string `json:"avatar_url"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

type User

type User struct {
	Id        int64  `json:"id"`
	Username  string `json:"username"`
	AvatarURL string `json:"avatar_url"`
	Flags     int    `json:"flags"`
}

func CreateUserResponse

func CreateUserResponse(user models.User) User

Jump to

Keyboard shortcuts

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