-
Notifications
You must be signed in to change notification settings - Fork 0
feat: アクティビティ入退室エンドポイントの実装 #244
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b6cfccb
feat: add activity endpoints
newt239 eff209c
refactor: separate methods
newt239 2190d72
feat: improve validation
newt239 d82ef0c
feat: improve endpoint of editing timestamp
newt239 90e12ba
fix: type error on post email
newt239 e532305
feat: update note field
newt239 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| post: | ||
| tags: | ||
| - activity | ||
| description: "Activity checkin" | ||
| security: | ||
| - BearerAuth: [] | ||
| requestBody: | ||
| description: "Activity checkin request" | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../schemas/req_post_activity_checkin.yml" | ||
| responses: | ||
| 200: | ||
| $ref: "../responses/blank_success.yml" | ||
| 400: | ||
| $ref: "../responses/bad_request.yml" | ||
| 403: | ||
| $ref: "../responses/unauthorized.yml" | ||
| 500: | ||
| $ref: "../responses/internal_server.yml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| post: | ||
| tags: | ||
| - activity | ||
| description: "Activity checkout" | ||
| security: | ||
| - BearerAuth: [] | ||
| requestBody: | ||
| description: "Activity checkout request" | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../schemas/req_post_activity_checkout.yml" | ||
| responses: | ||
| 200: | ||
| $ref: "../responses/blank_success.yml" | ||
| 400: | ||
| $ref: "../responses/bad_request.yml" | ||
| 403: | ||
| $ref: "../responses/unauthorized.yml" | ||
| 404: | ||
| $ref: "../responses/not_found.yml" | ||
| 500: | ||
| $ref: "../responses/internal_server.yml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| post: | ||
| tags: | ||
| - activity | ||
| description: "Admin force activity checkout" | ||
| security: | ||
| - BearerAuth: [] | ||
| parameters: | ||
| - name: userId | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| requestBody: | ||
| description: "Activity checkout request" | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../schemas/req_post_activity_checkout.yml" | ||
| responses: | ||
| 200: | ||
| $ref: "../responses/blank_success.yml" | ||
| 400: | ||
| $ref: "../responses/bad_request.yml" | ||
| 403: | ||
| $ref: "../responses/unauthorized.yml" | ||
| 404: | ||
| $ref: "../responses/not_found.yml" | ||
| 500: | ||
| $ref: "../responses/internal_server.yml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| put: | ||
| tags: | ||
| - activity | ||
| description: "Update activity record times" | ||
| security: | ||
| - BearerAuth: [] | ||
| parameters: | ||
| - name: recordId | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| requestBody: | ||
| description: "Activity record update request" | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "../schemas/req_put_activity_record_record_id.yml" | ||
| responses: | ||
| 200: | ||
| $ref: "../responses/blank_success.yml" | ||
| 400: | ||
| $ref: "../responses/bad_request.yml" | ||
| 403: | ||
| $ref: "../responses/unauthorized.yml" | ||
| 404: | ||
| $ref: "../responses/not_found.yml" | ||
| 500: | ||
| $ref: "../responses/internal_server.yml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| required: | ||
| - place | ||
| properties: | ||
| place: | ||
| type: string | ||
| minLength: 3 | ||
| maxLength: 10 | ||
| x-oapi-codegen-extra-tags: | ||
| validate: required,min=3,max=10 | ||
| ja: 場所名 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| required: | ||
| - place | ||
| properties: | ||
| place: | ||
| type: string | ||
| minLength: 3 | ||
| maxLength: 10 | ||
newt239 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| x-oapi-codegen-extra-tags: | ||
| validate: required,min=3,max=10 | ||
| ja: 場所名 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| required: | ||
| - activity_type | ||
| - time | ||
| properties: | ||
| activity_type: | ||
| type: string | ||
| enum: | ||
| - checkin | ||
| - checkout | ||
| x-oapi-codegen-extra-tags: | ||
| ja: アクティビティタイプ | ||
| time: | ||
| type: string | ||
| format: date-time | ||
| x-oapi-codegen-extra-tags: | ||
| ja: 更新時刻 | ||
newt239 marked this conversation as resolved.
Show resolved
Hide resolved
newt239 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.