handler

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

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateShop

func CreateShop(c *fiber.Ctx) error

func DeleteShop

func DeleteShop(c *fiber.Ctx) error

func GetShop

func GetShop(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func UpdateShop

func UpdateShop(c *fiber.Ctx) error

Types

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type RegisterRequest

type RegisterRequest struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Phone    string `json:"phone"`
	Role     string `json:"role"`
}

type RegisterResponse

type RegisterResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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