Skip to content

Comments

feat(customer): implement Customer repository#2

Merged
Insane-Bob merged 11 commits intomainfrom
feat/customer
Jan 14, 2025
Merged

feat(customer): implement Customer repository#2
Insane-Bob merged 11 commits intomainfrom
feat/customer

Conversation

@Insane-Bob
Copy link
Collaborator

No description provided.

Comment on lines 7 to 9
interface ShowCustomerInput extends IInputUseCase {
VehicleImmatriculation: VehicleImmatriculation
}
Copy link
Owner

Choose a reason for hiding this comment

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

mmm c'est etrange ca il fautdrait un uuid sur le customer plutot ou le DriverLicense

name: string,
phoneNumber: string,
email: string
vehiculeImmatrictulation: VehicleImmatriculation,
Copy link
Owner

Choose a reason for hiding this comment

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

Pareil ici tu dépends trop du véhicule pour le customer

public readonly name: string,
public readonly phoneNumber: string,
public readonly email: string,
public readonly vehiculeImmatrictulation: VehicleImmatriculation,
Copy link
Owner

Choose a reason for hiding this comment

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

Ne pas dépendre du véhicule

Copy link
Owner

Choose a reason for hiding this comment

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

Le clients peut avior plusieurs véhicule

import { MappedEntity } from "./MappedEntity";

export class CustomerMapper {
public static toPersistence(customer: Customer): MappedEntity {
Copy link
Owner

Choose a reason for hiding this comment

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

Implementé les nouveau MappedEntity

import { GarageAddress } from '../../domain/maintenance/value-object/GarageAddress';
import { MappedEntity } from "./MappedEntity";

export class GarageMapper {
Copy link
Owner

Choose a reason for hiding this comment

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

Pareil ici

@Insane-Bob Insane-Bob merged commit a95091a into main Jan 14, 2025
2 checks passed
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