requests

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterAdminRequest added in v0.2.0

type RegisterAdminRequest struct {
	FullName string `json:"full_name" validate:"required,min=4,max=255"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8,max=255,secure_password"`
}

func (*RegisterAdminRequest) ToDTO added in v0.2.0

func (request *RegisterAdminRequest) ToDTO() *dtos.RegisterUserDTO

type RegisterTeacherRequest added in v0.5.0

type RegisterTeacherRequest struct {
	FullName string `json:"full_name" validate:"required,min=4,max=255"`
	Email    string `json:"email" validate:"required,email,institutional_email"`
	Password string `json:"password" validate:"required,min=8,max=255,secure_password"`
}

func (*RegisterTeacherRequest) ToDTO added in v0.5.0

func (request *RegisterTeacherRequest) ToDTO() *dtos.RegisterUserDTO

type RegisterUserRequest

type RegisterUserRequest struct {
	FullName        string `json:"full_name" validate:"required,min=4,max=255"`
	Email           string `json:"email" validate:"required,email,institutional_email"`
	InstitutionalId string `json:"institutional_id" validate:"required,numeric,min=6,max=9"`
	Password        string `json:"password" validate:"required,min=8,max=255,secure_password"`
}

func (*RegisterUserRequest) ToDTO

func (request *RegisterUserRequest) ToDTO() *dtos.RegisterUserDTO

Jump to

Keyboard shortcuts

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