Documentation ¶
Index ¶
- type AnnualIncome
- type CreateOrderItemParam
- type CreateOrderParam
- type CreateProductParam
- type ErrInvalidCredential
- type ErrItemAlreadyExists
- type ErrNotFound
- type ErrValidation
- type Order
- type OrderItem
- type Product
- type ProductSale
- type UpdateProductParam
- type UpdateUserParam
- type UpdateUserPasswordParam
- type User
- type UserCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnualIncome ¶
type CreateOrderItemParam ¶
type CreateOrderParam ¶
type CreateOrderParam struct { Total int `json:"total,omitempty"` Items []*CreateOrderItemParam `json:"order_items" validate:"required"` }
type CreateProductParam ¶
type ErrInvalidCredential ¶
func (ErrInvalidCredential) Error ¶
func (eic ErrInvalidCredential) Error() string
type ErrItemAlreadyExists ¶
func (ErrItemAlreadyExists) Error ¶
func (eie ErrItemAlreadyExists) Error() string
type ErrNotFound ¶
func (ErrNotFound) Error ¶
func (ent ErrNotFound) Error() string
type ErrValidation ¶
func (ErrValidation) Error ¶
func (ve ErrValidation) Error() string
type OrderItem ¶
type OrderItem struct { ID int64 `json:"id,omitempty"` OrderID int64 `json:"order_id,omitempty"` ProductID int64 `json:"product_id"` ProductCode string `json:"product_code"` ProductName string `json:"product_name"` ProductPrice int `json:"product_price"` Quantity int `json:"quantity"` Subtotal int `json:"subtotal"` CreatedAt time.Time `json:"created_at,omitempty"` }
type ProductSale ¶
type UpdateProductParam ¶
type UpdateUserParam ¶
type UpdateUserPasswordParam ¶
type UserCredential ¶
Click to show internal directories.
Click to hide internal directories.