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

[Enhancement] Add Response Status #209

Merged
merged 3 commits into from
Jun 25, 2023

Conversation

ahmed3mar
Copy link
Contributor

Closes #

πŸ“‘ Description

Add Status to response

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

@@ -56,6 +56,10 @@ func (r *GinResponse) Success() httpcontract.ResponseSuccess {
return NewGinSuccess(r.instance)
}

func (r *GinResponse) Status(code int) httpcontract.ResponseStatus {
return NewGinStatus(r.instance)
Copy link
Contributor

Choose a reason for hiding this comment

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

S: We need to set the code.

@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

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

Comparison is base (3ce7337) 63.00% compared to head (6911d86) 62.93%.

❗ Current head 6911d86 differs from pull request most recent head ff907c1. Consider uploading reports for the commit ff907c1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
- Coverage   63.00%   62.93%   -0.08%     
==========================================
  Files         125      125              
  Lines        8067     8077      +10     
==========================================
  Hits         5083     5083              
- Misses       2636     2646      +10     
  Partials      348      348              
Impacted Files Coverage Ξ”
http/gin_response.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
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

A useful feature, great work Bro!

@hwbrzzl hwbrzzl enabled auto-merge (squash) June 25, 2023 08:58
@hwbrzzl hwbrzzl merged commit ae90575 into goravel:master Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants