using System.ComponentModel.DataAnnotations; namespace SPMS.Application.DTOs.Notice; public class NoticeListRequestDto { [Range(1, int.MaxValue, ErrorMessage = "페이지 번호는 1 이상이어야 합니다.")] public int Page { get; set; } = 1; [Range(1, 100, ErrorMessage = "페이지 크기는 1~100 사이여야 합니다.")] public int Size { get; set; } = 20; }