Centralize admin validation rules
TaxBaik CI/CD / build-and-deploy (push) Successful in 3m4s

This commit is contained in:
2026-07-07 16:22:03 +09:00
parent cd7892e858
commit 4c2a13712b
4 changed files with 59 additions and 36 deletions
@@ -0,0 +1,22 @@
namespace TaxBaik.Application.DTOs;
public static class ValidationRules
{
public const int NameMaxLength = 100;
public const int PhoneMaxLength = 20;
public const int ServiceTypeMaxLength = 50;
public const int MessageMaxLength = 5000;
public const int MessageMinLength = 10;
public const int MemoMaxLength = 1000;
public const int TitleMaxLength = 100;
public const int QuestionMaxLength = 300;
public const int ContentMaxLength = 30000;
public const int TagsMaxLength = 500;
public const int SeoTitleMaxLength = 120;
public const int SeoDescriptionMaxLength = 300;
public const int ContractNumberMaxLength = 50;
public const int RiskLevelMaxLength = 20;
public const string KoreanPhonePattern =
@"^(0(?:2|3[1-3]|4[1-4]|5[1-5]|6[1-4]|70|50[5-9]|[7-9](?:\d{1,2})?)\d{7,8}|0\d{9,10})$";
}