Files
ERP_Distribution/Distribution/Features/User/UserDTOs.cs
T
Kalana B. Thilakarathna 0052725b88 feat: add user and role view sheets with detailed information display
- Created UserViewSheet component to display user details including username, full name, role, status, and timestamps.
- Created RoleViewSheet component to display role details including name, level, status, creation date, and associated permissions.
- Introduced permissions configuration in a new permissions.ts file, defining categories and permission codes for better management.
- Implemented middleware for authentication, ensuring access control for protected routes.
2026-10-18 23:11:01 +05:30

31 lines
677 B
C#

using System.ComponentModel.DataAnnotations;
namespace Distribution.Features.User;
public record CreateUserRequest(
[EmailAddress] string Username,
string Password,
string FullName,
Guid RoleId,
Guid? ReportsToUserId);
public record UpdateUserRequest(string FullName);
public record AssignUserRoleRequest(Guid RoleId);
public record AssignUserScopeRequest(
List<Guid> RegionIds,
List<Guid> RouteIds,
List<Guid> StoreIds);
public record UserResponse(
Guid Id,
string Username,
string FullName,
Guid RoleId,
string RoleName,
Guid? ReportsToUserId,
bool IsActive,
DateTime CreatedAt,
DateTime? UpdatedAt);