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

Feat: [#133] Add All and Queries methods to Request #118

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented May 22, 2023

Close: goravel/goravel#133

all := ctx.Request().All()
queries := ctx.Request().Queries()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only add All and Queries methods, other methods just change order.

Comment on lines +37 to 40
// DEPRECATED: Use input instead. Retrieve a form string item from the post: /users POST:id=1,
Form(key string, defaultValue ...string) string
// Json Retrieve data from the post: /users JSON:{"id": 1}
// DEPRECATED: Use input instead. Retrieve data from the post: /users JSON:{"id": 1}
Json(key string, defaultValue ...string) string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deprecate these methods.

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.41 ⚠️

Comparison is base (317bc63) 53.36% compared to head (e20d612) 52.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
- Coverage   53.36%   52.95%   -0.41%     
==========================================
  Files         105      105              
  Lines        7500     7558      +58     
==========================================
  Hits         4002     4002              
- Misses       3219     3277      +58     
  Partials      279      279              
Impacted Files Coverage Δ
http/gin_request.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@devhaozi devhaozi left a comment

Choose a reason for hiding this comment

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

LGTM

@devhaozi devhaozi merged commit 9d7896d into master May 22, 2023
@devhaozi devhaozi deleted the bowen/#133 branch May 22, 2023 14:01
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.

✨ [Feature] Add some new methods for Request to get all query, form data
2 participants