dto

package
v0.0.0-...-2893c3e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 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" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type NutritionPredictRequest

type NutritionPredictRequest struct {
	Picture *multipart.FileHeader `form:"picture" validate:"required"`
}

type NutritionPredictResponse

type NutritionPredictResponse struct {
	ID             string  `json:"id"`
	Name           string  `json:"name"`
	UserID         string  `json:"userId"`
	Type           string  `json:"type"`
	Score          float32 `json:"score"`
	Calories       float64 `json:"calorie"`
	Carbohydrates  float64 `json:"carbohydrates"`
	Sugar          float64 `json:"sugar"`
	Fats           float64 `json:"fats"`
	Protein        float64 `json:"protein"`
	Recommendation string  `json:"recommendation"`
	CreatedAt      string  `json:"createdAt"`
}

type RegisterRequest

type RegisterRequest struct {
	Username string `json:"username" validate:"required"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type UserClaims

type UserClaims struct {
	Email    string `json:"email"`
	ID       string `json:"id"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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