ContentRequest.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. namespace Common.Http
  3. {
  4. // =============== BANNER ===============
  5. public class BannerLoadReq
  6. {
  7. public string? lang { get; set; } = "lo";
  8. public int pageNumber { get; set; } = 0;
  9. public int pageSize { get; set; } = 10;
  10. /// <summary>Position filter: "home", "sidebar", etc.</summary>
  11. public string? position { get; set; }
  12. }
  13. // =============== CUSTOMER REVIEW ===============
  14. public class CustomerReviewLoadReq
  15. {
  16. public string? lang { get; set; } = "lo";
  17. public int pageNumber { get; set; } = 0;
  18. public int pageSize { get; set; } = 10;
  19. /// <summary>Filter featured reviews only</summary>
  20. public bool? isFeatured { get; set; }
  21. }
  22. public class CustomerReviewCreateReq
  23. {
  24. public string? lang { get; set; } = "lo";
  25. public string customerName { get; set; } = null!;
  26. public string reviewContent { get; set; } = null!;
  27. public string? destination { get; set; }
  28. public int rating { get; set; }
  29. }
  30. // =============== FAQ ===============
  31. public class FaqCategoryLoadReq
  32. {
  33. public string? lang { get; set; } = "lo";
  34. public int pageNumber { get; set; } = 0;
  35. public int pageSize { get; set; } = 10;
  36. /// <summary>Parent category ID (null = get root categories)</summary>
  37. public int? parentId { get; set; }
  38. }
  39. public class FaqLoadReq
  40. {
  41. public string? lang { get; set; } = "lo";
  42. public int pageNumber { get; set; } = 0;
  43. public int pageSize { get; set; } = 10;
  44. /// <summary>Filter by category ID</summary>
  45. public int? categoryId { get; set; }
  46. /// <summary>Filter featured FAQs only</summary>
  47. public bool? isFeatured { get; set; }
  48. }
  49. }