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
Click to show internal directories.
Click to hide internal directories.