source: iknow-api/Services/Interfaces/IUserService.cs@ 4f5d8fd

Last change on this file since 4f5d8fd was 4f5d8fd, checked in by stefansaveski <stefansaveski19@…>, 11 months ago

Add user-related models, services, and JWT validation

Added ContactInfo, EnrollmentInfo, and HighSchool models with relationships to the User entity. Updated AppDbContext and migrations to reflect these changes. Introduced UserService and IUserService for handling user data retrieval via JWT validation. Added UserController with a getUser endpoint to fetch user data based on JWT.

Enhanced IUserRepository and UserRepository with a method to fetch users by ID. Registered UserService in the DI container. Defined enums for EnrollmentInfo and HighSchool. Removed outdated migration files and performed general refactoring and cleanup.

  • Property mode set to 100644
File size: 175 bytes
Line 
1using iknow_api.DTOs;
2using iknow_api.Models;
3namespace iknow_api.Services
4{
5 public interface IUserService
6 {
7 Task<User> GetUserData(string userId);
8 }
9}
Note: See TracBrowser for help on using the repository browser.