renamed models, added mapper for recipes
This commit is contained in:
parent
7a6f5b5bcd
commit
8027fce80d
21 changed files with 164 additions and 61 deletions
5
frontend/src/api/dtos/AbstractDto.ts
Normal file
5
frontend/src/api/dtos/AbstractDto.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export abstract class AbstractDto {
|
||||
id?: string;
|
||||
createdAt?: Date;
|
||||
updatedAt?: Date;
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import { AbstractDto } from "./AbstractDto.js";
|
||||
import { AbstractDto } from "./AbstractDto.ts";
|
||||
import { RecipeIngredientGroupDto } from "./RecipeIngredientGroupDto.js";
|
||||
import { RecipeInstructionStepDto } from "./RecipeInstructionStepDto.js";
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { AbstractDto } from "./AbstractDto.js";
|
||||
import { AbstractDto } from "./AbstractDto.ts";
|
||||
|
||||
export class RecipeIngredientDto extends AbstractDto{
|
||||
name!: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { AbstractDto } from "./AbstractDto.js";
|
||||
import { AbstractDto } from "./AbstractDto.ts";
|
||||
import { RecipeIngredientDto } from "./RecipeIngredientDto.js";
|
||||
|
||||
export class RecipeIngredientGroupDto extends AbstractDto{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { UUID } from "crypto";
|
||||
import { AbstractDto } from "./AbstractDto.js";
|
||||
import { AbstractDto } from "./AbstractDto.ts";
|
||||
|
||||
export class RecipeInstructionStepDto extends AbstractDto{
|
||||
text!: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { AbstractDto } from "./AbstractDto.js";
|
||||
import { AbstractDto } from "./AbstractDto.ts";
|
||||
|
||||
export class UserDto extends AbstractDto {
|
||||
firstName?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue