- 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>
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
namespace SPMS.Domain.Common;
|
|
|
|
/// <summary>
|
|
/// SPMS 에러 코드 상수
|
|
/// 코드 체계: [상태(0=성공,1=실패)][도메인(0~8)][순번]
|
|
/// </summary>
|
|
public static class ErrorCodes
|
|
{
|
|
// === 성공 ===
|
|
public const string Success = "000";
|
|
|
|
// === 공통 (0) ===
|
|
public const string BadRequest = "101";
|
|
public const string Unauthorized = "102";
|
|
public const string NotFound = "103";
|
|
public const string InternalError = "104";
|
|
public const string NoChange = "105";
|
|
public const string LimitExceeded = "106";
|
|
public const string Conflict = "107";
|
|
public const string Forbidden = "108";
|
|
|
|
// === Auth (1) ===
|
|
public const string VerificationCodeError = "111";
|
|
public const string LoginFailed = "112";
|
|
public const string LoginAttemptExceeded = "113";
|
|
|
|
// === Account (2) ===
|
|
public const string PasswordValidationFailed = "121";
|
|
public const string ResetTokenError = "122";
|
|
|
|
// === Push (6) ===
|
|
public const string PushSendFailed = "161";
|
|
public const string PushStateChangeNotAllowed = "162";
|
|
}
|