ContentRequest.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  37. public class FaqLoadReq
  38. {
  39. public string? lang { get; set; } = "lo";
  40. public int pageNumber { get; set; } = 0;
  41. public int pageSize { get; set; } = 10;
  42. /// <summary>Filter by category ID</summary>
  43. public int? categoryId { get; set; }
  44. /// <summary>Filter featured FAQs only</summary>
  45. public bool? isFeatured { get; set; }
  46. }
  47. }