dto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 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 CategoryRequest

type CategoryRequest struct {
	Title string `json:"title" binding:"required" example:"digital"`
}

type CommentsRequest

type CommentsRequest struct {
	Message string `json:"message"`
}

type MediaRequest

type MediaRequest struct {
	Files []*multipart.FileHeader `form:"files" binding:"required"`
}

type ProductRequest

type ProductRequest struct {
	Name        string   `json:"name" example:"Table" binding:"required,min=1,max=75"`
	Description string   `` /* 127-byte string literal not displayed */
	Price       float64  `json:"price" example:"19.99" binding:"required"`
	Stock       int      `json:"stock" example:"12" binding:"required"`
	Weight      int      `json:"weight" example:"5" binding:"required"`
	Tags        []string `json:"tags" example:"ai,ml" binding:"omitempty"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `` /* 206-byte string literal not displayed */
}

type RegisterLoginRequest

type RegisterLoginRequest struct {
	FirstName string `json:"first_name" example:"James" binding:"omitempty,min=1,max=75"`
	LastName  string `json:"last_name" example:"Rodriguez" binding:"omitempty,min=1,max=75"`
	Phone     string `json:"phone" example:"+989021112299" binding:"required,phone,min=11,max=13"`
}

type SendOTPRequest

type SendOTPRequest struct {
	Phone string `json:"phone" example:"+989021112299" binding:"required,phone,min=11,max=13"`
}

type TagRequest

type TagRequest struct {
	Name string `json:"name" example:"ai" binding:"required"`
}

type UpdateUserRequest

type UpdateUserRequest struct {
	FirstName string `json:"first_name" example:"James" binding:"required,min=1,max=75"`
	LastName  string `json:"last_name" example:"Rodriguez" binding:"required,min=1,max=75"`
}

type VerifyOTPRequest

type VerifyOTPRequest struct {
	Code string `json:"code" example:"241960" binding:"required,min=6,max=6"`
}

Jump to

Keyboard shortcuts

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