octoposprime / op-be-graphql

OctopOS Prime Backend Api Gateway
http://www.octoposprime.com
MIT License
13 stars 1 forks source link

Remove Unused Import in authorization.go #64

Closed Feyzanrs closed 3 months ago

Feyzanrs commented 3 months ago

In the authorization.go file within the internal/application/presentation/port/command directory, we need to clean up the code by removing an unused import. The import statement for "context" and the protobuf-related code are no longer necessary as the function CheckAuth has been commented out. This change will help maintain cleaner and more maintainable code by eliminating unnecessary dependencies.

The new version of the code:

package application

// AuthorizationCommandPort is a port for Hexagonal Architecture Pattern.
// It is used to communicate with the application layer.
type AuthorizationCommandPort interface {
    // CheckAuth returns true if the user is authorized to perform the action.
    // CheckAuth(ctx context.Context, authRequest *pb.AuthRequest) (*pb.AuthResponse, error)
}

Additionally, please make sure to push all changes to the feature/hsm/58/auth-service branch.