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 VerifyOTPRequest ¶
type VerifyOTPRequest struct {
Code string `json:"code" example:"241960" binding:"required,min=6,max=6"`
}
Click to show internal directories.
Click to hide internal directories.