PostConstant.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Domain.Entities.Forum.Constants;
  2. /// <summary>
  3. /// 게시글 설정 상수
  4. /// </summary>
  5. public static class PostConstant
  6. {
  7. /// <summary>
  8. /// 최대 제목 길이
  9. /// </summary>
  10. public const byte MaxAllowedSubjectLength = 120;
  11. /// <summary>
  12. /// 최대 본문 길이
  13. /// </summary>
  14. public const ushort MaxAllowedContentLength = 5000;
  15. /// <summary>
  16. /// 최대 태그 입력 제한 수
  17. /// </summary>
  18. public const byte MaxAllowedTags = 10;
  19. /// <summary>
  20. /// 최대 이미지 입력 제한 수
  21. /// </summary>
  22. public const byte MaxAllowedImages = 50;
  23. /// <summary>
  24. /// 최대 이미지 용량 (KB)
  25. /// </summary>
  26. public const int MaxAllowedImageSize = 51200;
  27. /// <summary>
  28. /// 허용 이미지 확장자
  29. /// </summary>
  30. public const string AllowedImageExtensions = "jpg,jpeg,gif,png";
  31. /// <summary>
  32. /// 최대 미디어 입력 제한 수
  33. /// </summary>
  34. public const byte MaxAllowedMedias = 20;
  35. /// <summary>
  36. /// 최대 파일 입력 제한 수
  37. /// </summary>
  38. public const byte MaxAllowedFiles = 10;
  39. /// <summary>
  40. /// 최대 파일 용량 (KB)
  41. /// </summary>
  42. public const int MaxAllowedFileSize = 204800;
  43. }