- AccountController: 운영자 CRUD 엔드포인트 (create, list, detail, update, delete) - AccountService: 비즈니스 로직 구현 - Account DTOs: 요청/응답 DTO 5종 - ErrorCodes: Forbidden 코드 추가 - DI 등록 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
478 B
C#
16 lines
478 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace SPMS.Application.DTOs.Account;
|
|
|
|
public class AccountListRequestDto
|
|
{
|
|
[Range(1, int.MaxValue, ErrorMessage = "페이지 번호는 1 이상이어야 합니다.")]
|
|
public int Page { get; set; } = 1;
|
|
|
|
[Range(1, 100, ErrorMessage = "페이지 크기는 1~100 사이여야 합니다.")]
|
|
public int PageSize { get; set; } = 20;
|
|
|
|
public string? SearchKeyword { get; set; }
|
|
public int? Role { get; set; }
|
|
}
|