Documentation
¶
Index ¶
- type CatalogResponse
- type HealthService
- type OrderService
- func (s *OrderService) Create(ctx context.Context, order *models.Order) error
- func (s *OrderService) Get(ctx *fasthttp.RequestCtx, user *middleware.Claim, id primitive.ObjectID) (*models.Order, error)
- func (s *OrderService) List(ctx *fasthttp.RequestCtx, user *middleware.Claim) ([]*models.Order, error)
- func (s *OrderService) SendPurchasedEmail(order *models.Order) error
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogResponse ¶
type CatalogResponse struct {
Name string `json:"name"`
}
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
func NewHealthService ¶
func NewHealthService(db *mongo.Database) *HealthService
type OrderService ¶
type OrderService struct {
// contains filtered or unexported fields
}
func NewOrderService ¶
func NewOrderService(db *mongo.Database) *OrderService
func (*OrderService) Get ¶
func (s *OrderService) Get(ctx *fasthttp.RequestCtx, user *middleware.Claim, id primitive.ObjectID) (*models.Order, error)
func (*OrderService) List ¶
func (s *OrderService) List(ctx *fasthttp.RequestCtx, user *middleware.Claim) ([]*models.Order, error)
func (*OrderService) SendPurchasedEmail ¶
func (s *OrderService) SendPurchasedEmail(order *models.Order) error
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.