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

New patch end point #11

Closed
wants to merge 2 commits into from
Closed

New patch end point #11

wants to merge 2 commits into from

Conversation

figmateus
Copy link

Pr de alteracao de permissao de privilegios de usuarios

Copy link

@rigonlucas rigonlucas left a comment

Choose a reason for hiding this comment

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

resolver conflitos, ajustar use e responder dúvidas

@@ -18,6 +18,7 @@
use Hyperf\Config\Annotation\Value;
use Hyperf\HttpServer\Contract\RequestInterface;
use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface;
use Symfony\Component\Console\Helper\Dumper;

Choose a reason for hiding this comment

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

dependencia não utilizada

@@ -178,4 +179,25 @@ public function permission(RequestInterface $request, $uuid)
'user' => $user,
]);
}

public function alterUserPermission(RequestInterface $request, $uuid){

Choose a reason for hiding this comment

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

tem que verificar se a pessoa tem permissão para realizar a atualização?

Copy link
Author

Choose a reason for hiding this comment

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

isso nao seria tratado no middleware?

@@ -0,0 +1 @@
{"openapi":"3.0.0","paths":{"\/index":{"get":{"tags":["\/Index"],"summary":"GET example","operationId":"c7a3e07c42ef883719b986d0d3195666","responses":{"200":{"description":"Description of the returned value","content":{"application\/json":{"schema":[],"example":"{\"code\":200, \"data\":[]}"}}}}}}}}

Choose a reason for hiding this comment

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

pode remover

Copy link
Author

Choose a reason for hiding this comment

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

no caso colocar no gitignore correto ?

@figmateus figmateus closed this Jul 19, 2024
@figmateus figmateus deleted the newPatchEndPoint branch July 19, 2024 22:56
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