You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update introduces a new method CheckUserPassword to the UserCommandPort interface. This method is intended to facilitate checking the user's password in the service layer.
package application
import (
"context"
me "github.com/octoposprime/op-be-user/internal/domain/model/entity"
)
// CommandPort is a port for Hexagonal Architecture Pattern.// It is used to communicate with the application layer.typeUserCommandPortinterface {
// CreateUser sends the given user to the application layer for creating a new user.CreateUser(ctx context.Context, user me.User) (me.User, error)
// UpdateUserBase sends the given base values of the user to the repository of the infrastructure layer for updating base values of user data.UpdateUserBase(ctx context.Context, user me.User) (me.User, error)
// UpdateUserStatus sends the given status value of the user to the repository of the infrastructure layer for updating status of user data.UpdateUserStatus(ctx context.Context, user me.User) (me.User, error)
// UpdateUserRole sends the given type value of the user to the repository of the infrastructure layer for updating role of user data.UpdateUserRole(ctx context.Context, user me.User) (me.User, error)
// DeleteUser sends the given user to the application layer for deleting data.DeleteUser(ctx context.Context, user me.User) (me.User, error)
// ChangePassword sends the given user password to the application layer for changing user password.ChangePassword(ctx context.Context, userPassword me.UserPassword) error// CheckUserPassword sends the given user to the user service and returns the result of the password check.CheckUserPassword(ctx context.Context, user me.User, userPassword me.UserPassword) (me.User, error) //new method
}
The "//new method" comment line has been added to make it easier for you to see the changes. Please remember to remove that part while you are working on your issue.
The changes will be merged into the enhance/team/66/implement-password-validation branch first. Therefore, set the base branch of the pull request as enhance/team/66/implement-password-validation.
The text was updated successfully, but these errors were encountered:
This update introduces a new method
CheckUserPassword
to theUserCommandPort
interface. This method is intended to facilitate checking the user's password in the service layer.Path of the file to be changed
internal/application/presentation/port/command/user.go
Updated Code
The "//new method" comment line has been added to make it easier for you to see the changes. Please remember to remove that part while you are working on your issue.
The changes will be merged into the
enhance/team/66/implement-password-validation
branch first. Therefore, set the base branch of the pull request asenhance/team/66/implement-password-validation
.The text was updated successfully, but these errors were encountered: