Documentation
¶
Index ¶
- type Category
- type CategoryResponse
- type CreditCard
- type CreditCardResponse
- type Customer
- type CustomerResponse
- type Login
- type LoginResponse
- type Order
- type OrderProduct
- type OrderProductResponse
- type OrderResponse
- type Payment
- type PaymentResponse
- type Product
- type ProductResponse
- type Shipper
- type ShipperResponse
- type Subcategory
- type SubcategoryResponse
- type Supplier
- type SupplierResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryResponse ¶
type CreditCard ¶
type CreditCardResponse ¶
type CreditCardResponse struct {
ID string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
Brand string `example:"Visa"`
Number string `example:"4468467578025601"`
CVV string `example:"847"`
MM string `example:"07"`
YYYY string `example:"2025"`
CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}
type Customer ¶
type Customer struct {
Name string `example:"Ramona Ellis"`
Email string `example:"ramona.ellis@example.com"`
DNI string `example:"105883636"`
Address string `example:"6597 Westheimer Rd"`
City string `example:"Billings"`
Birthday time.Time `example:"1990-01-02"`
PostalCode string `example:"63104"`
Country string `example:"United States"`
Phone string `example:"7097900"`
UserName string `example:"yellowpeacock117"`
Password string `example:"addison"`
}
type CustomerResponse ¶
type CustomerResponse struct {
ID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
Name string `example:"Ramona Ellis"`
Email string `example:"ramona.ellis@example.com"`
DNI string `example:"105883636"`
Address string `example:"6597 Westheimer Rd"`
City string `example:"Billings"`
Birthday time.Time `example:"1990-01-02"`
PostalCode string `example:"63104"`
Country string `example:"United States"`
Phone string `example:"7097900"`
UserName string `example:"yellowpeacock117"`
Password string `example:"addison"`
}
type Login ¶
type Login struct {
CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
}
type LoginResponse ¶
type Order ¶
type Order struct {
OrderDate time.Time `example:"1990-01-02"`
RequiredDate time.Time `example:"1990-01-02"`
ShippedDate time.Time `example:"1990-01-04"`
ShipName string `example:"Servientrega"`
ShipAddress string `example:"6597 Westheimer Rd"`
ShipCity string `example:"Billings"`
ShipPostalCode string `example:"63104"`
ShipCountry string `example:"United States"`
CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
ShipperID string `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}
type OrderProduct ¶
type OrderProductResponse ¶
type OrderProductResponse struct {
ID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
UnitPrice float32 `example:"32400"`
Quantity uint `example:"5"`
Discount float32 `example:"2400"`
ProductID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
OrderID string `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}
type OrderResponse ¶
type OrderResponse struct {
ID string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
OrderDate time.Time `example:"1990-01-02"`
RequiredDate time.Time `example:"1990-01-02"`
ShippedDate time.Time `example:"1990-01-04"`
ShipName string `example:"not null"`
ShipAddress string `example:"6597 Westheimer Rd"`
ShipCity string `example:"Billings"`
ShipPostalCode string `example:"63104"`
ShipCountry string `example:"United States"`
CustomerID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
ShipperID string `example:"9cc1g36t-6537-4d10-11fs-771may9224vv"`
}
type PaymentResponse ¶
type Product ¶
type Product struct {
ProductName string `example:"Product 1"`
QuantityPerUnit string `example:"2"`
UnitsInStock uint `example:"10"`
UnitsOnOrder uint `example:"3"`
ReorderLevel uint `example:"1"`
Discontinued bool `example:"false"`
Quantity uint `example:"10"`
SupplierID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
CategoryID string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}
type ProductResponse ¶
type ProductResponse struct {
ID string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
ProductName string `example:"Product 1"`
QuantityPerUnit string `example:"32400"`
UnitsInStock uint `example:"10"`
UnitsOnOrder uint `example:"3"`
ReorderLevel uint `example:"1"`
Discontinued bool `example:"false"`
Quantity uint `example:"10"`
SupplierID string `example:"5dd1f36f-1627-4c88-98fb-601feb9634be"`
CategoryID string `example:"5cc1f36f-1287-4c88-63fb-601feb9634be"`
}
type ShipperResponse ¶
type Subcategory ¶
type SubcategoryResponse ¶
type SupplierResponse ¶
type SupplierResponse struct {
ID string `example:"2ld1f12f-2227-8s08-18cc-222fdb9634xx"`
CompanyName string `example:"Arthur Clark"`
Address string `example:"49 Spring St"`
City string `example:"Billings"`
Country string `example:"United States"`
PostalCode string `example:"63104"`
Phone string `example:"6475240"`
HomePage string `example:"arthur.clark.com"`
}
Click to show internal directories.
Click to hide internal directories.