update

package
v0.0.0-...-1ad4281 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avatar

func Avatar(c *fiber.Ctx) error

Avatar Update handler

func Bio

func Bio(c *fiber.Ctx) error

Bio Update handler

func Name

func Name(c *fiber.Ctx) error

Name Update handler

func RemoveAvatar

func RemoveAvatar(c *fiber.Ctx) error

RemoveAvatar handler

func Type

func Type(c *fiber.Ctx) error

Type Update handler

Types

type AvatarResp

type AvatarResp struct {
	Success   bool   `json:"success"`
	AvatarUrl string `json:"avatarUrl,omitempty"`
	Error     string `json:"error,omitempty"`
}

type BioRequest

type BioRequest struct {
	Bio string `json:"bio" form:"bio"`
}

type NameRequest

type NameRequest struct {
	Name string `json:"name" form:"name"`
}

type TypeRequest

type TypeRequest struct {
	Type user.Types `json:"type" form:"type"`
}

Jump to

Keyboard shortcuts

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