//GetCurrent returns current user with the token
GetCurrent returns current user with the token
// GetCurrent returns current user with the token
func (service *UserService) GetCurrent(ctx context.Context, _ *pb.Empty) (*pb.UserResponse, error) {
	id := ctx.Value(server.UserIDKey{})
	var user UserDBModel
	service.DB.Take(&user, "id = ?", id)
	return &pb.UserResponse{Email: user.Email}, nil
}
func ( service * UserService ) GetCurrent ( ctx context . Context , _ * pb . Empty ) ( * pb . UserResponse , error ) { id := ctx . Value ( server . UserIDKey { } ) var user UserDBModel service . DB . Take ( & user , " " , id ) return & pb . UserResponse { Email : user . Email } , nil }
GetCurrent returns current user with the token
GetCurrent returns current user with the token