handler

package
v0.0.0-...-b805d9c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(s *service.CreateUserService) fiber.Handler

Creates a new user into the database

func UserRouter

func UserRouter(app fiber.Router, s *service.UserService)

UserRouter is the Router for GoFiber App

Types

type UserSchema

type UserSchema struct {
	IdentityNumber string    `json:"identity_number" validate:"required,min=6"`
	FirstName      string    `json:"first_name" validate:"required,min=2"`
	LastName       string    `json:"last_name" validate:"required,min=2"`
	Email          string    `json:"email" validate:"required,email"`
	DateOfBirth    time.Time `json:"date_of_birth" validate:"required"`
}

Body request schema for CreateUser

Jump to

Keyboard shortcuts

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