dto

package
v0.0.0-...-4ee604a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginDTO

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

func (LoginDTO) ValidationLogin

func (l LoginDTO) ValidationLogin() error

type StudentDTO

type StudentDTO struct {
	Fullname   string `json:"fullname"`
	Address    string `json:"address"`
	Birthdate  string `json:"birthdate"`
	Class      string `json:"class"`
	Batch      int    `json:"batch"`
	SchoolName string `json:"school_name"`
}

func (StudentDTO) ValidationStudent

func (s StudentDTO) ValidationStudent() error

type UserDTO

type UserDTO struct {
	Fullname string `json:"fullname"`
	Email    string `json:"email"`
	Address  string `json:"address"`
	Password string `json:"password"`
}

func (UserDTO) ValidationUser

func (u UserDTO) ValidationUser() error

Jump to

Keyboard shortcuts

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