api v2.0
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MongoDB.Bson" Version="2.24.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MongoDB.Bson" Version="2.24.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -12,13 +12,12 @@ public class Chat
|
||||
public Guid PatientId { get; set; }
|
||||
public Guid DoctorId { get; set; }
|
||||
|
||||
public List<Message> Messages { get; set; } = new List<Message>();
|
||||
public List<Message> Messages { get; set; } = new();
|
||||
}
|
||||
|
||||
public class Message
|
||||
{
|
||||
[BsonRepresentation(BsonType.String)]
|
||||
public Guid UserId { get; set; }
|
||||
[BsonRepresentation(BsonType.String)] public Guid UserId { get; set; }
|
||||
|
||||
public string Content { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,35 @@ public class Doctor
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
[Key] public Guid Id { get; private set; }
|
||||
|
||||
public string? Name { get; private set; }
|
||||
public string? Email { get; private set; }
|
||||
public string? Password { get; private set; }
|
||||
public string? Description { get; private set; }
|
||||
|
||||
public void SetId(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public void SetName(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public void SetEmail(string email)
|
||||
{
|
||||
Email = email;
|
||||
}
|
||||
|
||||
public void SetPassword(string password)
|
||||
{
|
||||
Password = password;
|
||||
}
|
||||
|
||||
public void SetDescription(string? description)
|
||||
{
|
||||
Description = description;
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@ public class MedicalHistory
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
[Key] public Guid Id { get; private set; }
|
||||
|
||||
public Guid UserId { get; set; }
|
||||
public byte[] Description { get; set; } = [];
|
||||
}
|
||||
public byte[] Content { get; set; } = [];
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities;
|
||||
|
||||
public class Pacient
|
||||
{
|
||||
public Pacient()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; private set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Password { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Core.Entities;
|
||||
|
||||
public class Patient
|
||||
{
|
||||
public Patient()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
}
|
||||
|
||||
[Key] public Guid Id { get; private set; }
|
||||
|
||||
public string? Name { get; private set; }
|
||||
public string? Email { get; private set; }
|
||||
public string? Password { get; private set; }
|
||||
|
||||
public void SetName(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public void SetEmail(string email)
|
||||
{
|
||||
Email = email;
|
||||
}
|
||||
|
||||
public void SetPassword(string password)
|
||||
{
|
||||
Password = password;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Core")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1206db932183801caeaefeb110af24b0147366c1")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2ccec617a59a712428e67340dc46bebefb152aca")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Core")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Core")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
fe502cc2dabe7d620b411277254bf1f11fc89ea26c1bc414fe1e6489b02a08aa
|
||||
232a219588f79d4fe98faad4c868c44fc40b96e3f6b7bc8086f4447599f3e74e
|
||||
|
||||
@@ -1 +1 @@
|
||||
ce18ed28752b8cf8d61854f33f1330028b638a171d8232431635f317dd6d517c
|
||||
481a6e81c3fb29f18f770ac0db64e6d4af0d1f426e06832b919c28802ccff560
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
{"documents":{"C:\\Users\\Andrei Cerbu\\Documents\\FACULTATE\\CC-FinalProj\\*":"https://raw.githubusercontent.com/andrei-mihnea-cerbu/CC-FinalProj/1206db932183801caeaefeb110af24b0147366c1/*"}}
|
||||
{"documents":{"C:\\Users\\Andrei Cerbu\\Documents\\FACULTATE\\CC-FinalProj\\*":"https://raw.githubusercontent.com/andrei-mihnea-cerbu/CC-FinalProj/2ccec617a59a712428e67340dc46bebefb152aca/*"}}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
17122552827080702
|
||||
17125075151943813
|
||||
Reference in New Issue
Block a user