param

package
v0.0.0-...-a019193 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 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 LoginRequest

type LoginRequest struct {
	Email    string `json:"email"  example:"name@test.com"`
	Password string `json:"password"  example:"123Qwe!@#"`
}

type LoginResponse

type LoginResponse struct {
	User   UserInfo `json:"user"`
	Tokens Token    `json:"token"`
}

type RegisterRequest

type RegisterRequest struct {
	Name     string `json:"name" example:"name"`
	Email    string `json:"email" example:"name@test.com"`
	Password string `json:"password" example:"123Qwe!@#"`
}

type RegisterResponse

type RegisterResponse struct {
	Email string `json:"email" example:"name@test.com"`
	ID    string `json:"id" example:"f90631e0-aad3-4eb1-8cef-1478711e16e9"`
}

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type UserInfo

type UserInfo struct {
	ID        string
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
	Email     string
}

Jump to

Keyboard shortcuts

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