feature : add login controller and get detail profile

Add user profile and permissions handling

- Updated `AuthHelper` to deserialize permissions from claims.
- Introduced `GetDates` method in `GeneralController` for date info.
- Created `LoginController` with `GetProfile` method to return user profile details.
This commit is contained in:
MahanCh
2025-07-02 12:03:25 +03:30
parent b9943cf460
commit c30c460a68
3 changed files with 57 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
using System.Globalization;
using _0_Framework.Application;
using CompanyManagment.EFCore.Migrations;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using ServiceHost.BaseControllers;
@@ -6,6 +9,12 @@ namespace ServiceHost.Controllers;
public class GeneralController:GeneralBaseController
{
/// <summary>
/// نمایش اطلاعات عمومی مانند تاریخ ها و سال ها
/// </summary>
/// <returns></returns>
[HttpGet("Dates")]
public IActionResult GetDates()
{
@@ -20,4 +29,6 @@ public class GeneralController:GeneralBaseController
years,months,currentDate
});
}
}