浏览代码

se creo un nuevo modelo de productos

yadid rosell 3 月之前
父节点
当前提交
d3e3892f3c
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/models/Producto.models.ts

+ 10 - 0
src/models/Producto.models.ts

@@ -0,0 +1,10 @@
+export class Producto {
+  id: number|undefined; 
+  nombre: string|undefined;
+  precio: string|undefined;
+  existencia: number|undefined;
+
+  constructor(json?: Partial<Producto>) {
+    Object.assign(this, json);
+  }
+}