Skip to content

Commit

Permalink
(#380) events: add the dtos and udpate studnet service client interface
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Aug 30, 2024
1 parent 7f2021a commit 8093c04
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace MiniSpace.Services.Events.Application.DTO
{
[ExcludeFromCodeCoverage]
public class EducationDto
{
public string InstitutionName { get; set; }
public string Degree { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string Description { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;


namespace MiniSpace.Services.Events.Application.DTO
{
[ExcludeFromCodeCoverage]
public class UserFromServiceDto
{
public Guid Id { get; set; }
public string Email { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string ProfileImageUrl { get; set; }
public string Description { get; set; }
public DateTime? DateOfBirth { get; set; }
public bool EmailNotifications { get; set; }
public bool IsBanned { get; set; }
public string State { get; set; }
public DateTime CreatedAt { get; set; }
public string ContactEmail { get; set; }
public string BannerUrl { get; set; }
public string PhoneNumber { get; set; }
public IEnumerable<string> Languages { get; set; }
public IEnumerable<string> Interests { get; set; }
public IEnumerable<EducationDto> Education { get; set; }
public IEnumerable<WorkDto> Work { get; set; }
public bool IsTwoFactorEnabled { get; set; }
public string TwoFactorSecret { get; set; }
public IEnumerable<Guid> InterestedInEvents { get; set; }
public IEnumerable<Guid> SignedUpEvents { get; set; }
public string Country { get; set; }
public string City { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace MiniSpace.Services.Events.Application.DTO
{
[ExcludeFromCodeCoverage]
public class WorkDto
{
public string Company { get; set; }
public string Position { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string Description { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ public interface IStudentsServiceClient
{
Task<StudentEventsDto> GetAsync(Guid id);
Task<bool> StudentExistsAsync(Guid id);
Task<UserFromServiceDto> GetStudentByIdAsync(Guid studentId);
}
}

0 comments on commit 8093c04

Please sign in to comment.