handlers

package
v0.0.0-...-abb4413 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAcount

func CreateAcount(c *fiber.Ctx) error

CreateUser godoc @Summary create a account @Description create a account @TAGS account @ID create-account @Accept json @Produce json @Param payload body serializers.User true "User" @Success 200 @Router /api/v1/account/create [post]

func DeleteAccount

func DeleteAccount(c *fiber.Ctx) error

DeleteUser godoc @Summary delete a account @Description delete a account @TAGS account @ID delete-account @Accept json @Produce json @Param id path string true "User.ID" @Success 200 @Router /api/v1/account/delete/{id} [delete]

func ShowAccount

func ShowAccount(c *fiber.Ctx) error

ShowAccount godoc @Summary Show a account @Description get string by ID @TAGS account @ID Show-account @Accept json @Produce json @Param id path string true "User.ID" @Success 200 @Router /api/v1/account/read/{id} [get]

func UpdateAccount

func UpdateAccount(c *fiber.Ctx) error

UpdateUser godoc @Summary update a account @Description update a account @TAGS account @ID update-account @Accept json @Produce json @Param payload body serializers.User true "User" @Param id path string true "User.ID" @Success 200 @Router /api/v1/account/update/{id} [put]

Types

type Result

type Result struct {
	ID       int
	Username string
	Password string
	Email    string
}

Jump to

Keyboard shortcuts

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