Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

リーチカウントのAPIを作成【view-user】 #284

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

YosukeIida
Copy link
Collaborator

対応Issue

概要

リーチカウントのAPIを作成 user側

実装詳細

  • reach_logsテーブルを作成
    • id
    • status: trueの時にリーチ数増加,falseの時reach数減少
    • created_at: 追加した時間
    • reachNum: 現在のリーチ数
  • graphqlクエリ,ミューテーションを作成
  • components/layoutのhandleReachIconClick関数の中の処理を変更
    • GetOneLatestReachLogのクエリで,最新のリーチ数の時間を取得
    • CreateOneReachRecordのミューテーションで,新規レコードを追加

画面スクリーンショット等

テスト項目

  • リーチボタンを押した時に,hasura consoleで,reachNumの値が1つ前のレコードより増加していることを確認
  • [ ]
  • [ ]

備考

@YosukeIida YosukeIida force-pushed the feat/i2/267-reach-count-api-user branch from 4f5eeab to 90d0dcb Compare August 29, 2024 14:35
Copy link
Collaborator

@hikahana hikahana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YosukeIida YosukeIida merged commit d8339a8 into develop Aug 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

リーチカウントのAPI作成
2 participants