mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-01 02:23:14 +00:00
Complete API layer with Clean Architecture: - Application DTOs (proposals, line items, customers, users, files, audit, dashboard) - Service interfaces (IProposalService, ILineItemService, ICustomerService, IAuditService, IS3Service, IJobPublisher) - FluentValidation validators for all create requests - Infrastructure service implementations (ProposalService, LineItemService, CustomerService, AuditService, S3Service, SqsJobPublisher, ProposalNumberGenerator) - Secrets Manager connection string resolver for RDS - API controllers: Proposals (CRUD + approve/send/revise), LineItems (CRUD + bulk), Customers, Users, Files (presigned upload/download), Admin (dashboard) - Middleware: GlobalExceptionHandler (ProblemDetails), ValidationFilter (FluentValidation pipeline) - CurrentUserService (Cognito JWT claims -> User entity, auto-provisioning) - Full DI configuration in Program.cs with Lambda hosting - Role-based authorization (dispatchers, admins, sysadmins) - CORS configured for proposals.seahaven.com + localhost
23 lines
401 B
C#
23 lines
401 B
C#
using ProposalSystem.Domain.Entities;
|
|
|
|
namespace ProposalSystem.Application.DTOs;
|
|
|
|
public record UserResponse(
|
|
Guid Id,
|
|
string Email,
|
|
string DisplayName,
|
|
UserRole Role,
|
|
bool IsActive,
|
|
DateTime CreatedAt
|
|
);
|
|
|
|
public record UpdateUserRoleRequest(
|
|
UserRole Role
|
|
);
|
|
|
|
public record UserProfileResponse(
|
|
Guid Id,
|
|
string Email,
|
|
string DisplayName,
|
|
UserRole Role
|
|
);
|