dto

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactsDTO

type FactsDTO struct {
	ID       int
	Question string
	Answer   string
}

type UserDTO

type UserDTO struct {
	ID       uuid.UUID
	Username string
	Email    string
}

type UserLoginBodyDTO

type UserLoginBodyDTO struct {
	Username string `json:"username,omitempty"` //identity can be username or email, user can login with both
	Email    string `json:"email,omitempty"`    //identity can be username or email, user can login with both
	Password string `json:"password" validate:"required"`
}

type UserUpdateBodyDTO

type UserUpdateBodyDTO struct {
	Username string
	Email    string
	Password string
}

Jump to

Keyboard shortcuts

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