package
0.3.0
Repository: https://github.com/hack-31/point-app-backend.git
Documentation: pkg.go.dev

# README

ハンドラー層

  • クライアントから送られてきたデータのバリデーションを行う
  • 実際の処理(ユースケース)の依頼はサービス層に依頼
  • クライアントにステータスなどを含めた適切なデータ返す

ファイル

service.go

  • ハンドラー層とサービス層を繋げるインターフェースを記述する(依存関係の逆転)
  • より上位レベルにインターフェースを持たせる必要があるためハンドラー層に配置
  • ハンドラー層は必ずインターフェースを利用してサービス層を操作すること

response.go

  • レスポンスを作成するメソッド

middleware.go

  • カスタムミドルウェアを記述する

# Functions

APIレスポンスの作成(成功時) @params ctx ginのコンテキスト StatusCode ステータスコード Message メッセージ Data 返却するデータ.
認証ミドルウェア.
エラーレスポンス作成 @params ctx ginのコンテキスト StatusCode ステータスコード Title エラータイトル Message メッセージ.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
エラーのレスポンスの型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
クライアントへの返すレスポンスの型.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

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