package
0.0.0-20210818084432-aea36be32079
Repository: https://github.com/go-masonry/tutorial.git
Documentation: pkg.go.dev

# README

/app/services

Code in this directory should handle things that are not related to the actual business logic. This layer should only be familiar with everything related to API models.

Should handle

  • Input validations
  • Authorization
    • Role check
  • Request/Response shaping
    • Extract a value from Context and replace it's corresponding one in request/response
  • Errors mapping

Shouldn't handle

  • Converting DTOs
  • Access DB
  • Implement business logic

# Functions

No description provided by the author
No description provided by the author