dtos

package
v0.0.0-...-25c43ee Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 URLCreateDto

type URLCreateDto struct {
	Original string `json:"original"`
	Expire   *int64 `json:"expire"`
}

type URLResponseDto

type URLResponseDto struct {
	ID       string     `json:"id"`
	Original string     `json:"original"`
	Expire   int64      `json:"expire"`
	UserID   *uuid.UUID `json:"user_id"`
}

type UserCreateDto

type UserCreateDto struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserLoginDto

type UserLoginDto struct {
	Username *string `json:"username,omitempty"`
	Email    *string `json:"email,omitempty"`
	Password string  `json:"password"`
}

type UserResponseDto

type UserResponseDto struct {
	ID       uuid.UUID `json:"ID"`
	Username string    `json:"username"`
	Email    string    `json:"email"`
}

Jump to

Keyboard shortcuts

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