dto

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginInputDTO

type LoginInputDTO struct {
	Email    string `json:"email" example:"admin@admin.com"`
	Password string `json:"password" example:"12345678"`
}

type PasswordInputDTO

type PasswordInputDTO struct {
	Password        *string `json:"password" example:"secret"`
	PasswordConfirm *string `json:"password_confirm" example:"secret"`
}

func (PasswordInputDTO) IsValid

func (p PasswordInputDTO) IsValid() bool

type PermissionsInputDTO

type PermissionsInputDTO struct {
	UserModule    *bool `json:"user_module" example:"true"`
	ProfileModule *bool `json:"profile_module" example:"true"`
}

type ProfileInputDTO

type ProfileInputDTO struct {
	Name        *string             `json:"name" example:"ADMIN"`
	Permissions PermissionsInputDTO `json:"permissions"`
}

type UserInputDTO

type UserInputDTO struct {
	Name      *string `json:"name" example:"John Cena"`
	Email     *string `json:"email" example:"john.cena@email.com"`
	Status    *bool   `json:"status" example:"true"`
	ProfileID *uint   `json:"profile_id" example:"1"`
}

Jump to

Keyboard shortcuts

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