request detail

This commit is contained in:
Phuoc Nguyen
2025-11-28 15:47:51 +07:00
parent 65f6f825a6
commit 9e7bda32f2
14 changed files with 1320 additions and 718 deletions

View File

@@ -8,15 +8,21 @@ import 'package:equatable/equatable.dart';
/// Project File Entity
///
/// Represents an uploaded file attached to a sample project.
class SampleProjectFile extends Equatable {
/// Shared entity for file attachments used by:
/// - SampleProject (model houses)
/// - DesignRequest (design requests)
///
/// API field mapping:
/// - name -> id
/// - file_url -> fileUrl
class ProjectFile extends Equatable {
/// Unique file identifier (API: name)
final String id;
/// Full URL to the file (API: file_url)
final String fileUrl;
const SampleProjectFile({
const ProjectFile({
required this.id,
required this.fileUrl,
});
@@ -52,7 +58,7 @@ class SampleProject extends Equatable {
final String? thumbnailUrl;
/// List of attached files/images (API: files_list) - available in detail
final List<SampleProjectFile> filesList;
final List<ProjectFile> filesList;
const SampleProject({
required this.id,