[Feature] Domain Enum 및 상수 정의 #10

Closed
opened 2026-02-09 04:11:45 +00:00 by seonkyu.kim · 0 comments
Owner

설명

도메인 전반에서 사용할 Enum과 에러 코드 상수를 정의한다.
DB_Schema.md와 Error_Codes.md 기반으로 Entity의 byte 필드를 Enum으로 대체하여 타입 안전성을 확보한다.

체크리스트

Enum 정의 (SPMS.Domain/Enums/)

  • Platform.cs — iOS(0), Android(1), Web(2)
  • ServiceStatus.cs — Active(0), Suspended(1)
  • SubTier.cs — Free(0), Basic(1), Pro(2)
  • AdminRole.cs — Super(0), Manager(1), User(2)
  • DeviceStatus.cs — Active(0), Inactive(1), Blocked(2)
  • MessageStatus.cs — Draft(0), Pending(1), Sending(2), Sent(3), Failed(4), Cancelled(5)
  • PushResult.cs — Success(0), Failed(1)
  • PaymentStatus.cs — Completed(0), Cancelled(1), Refunded(2)
  • TargetType.cs — All(0), Filter(1), CsvFile(2), UserList(3)
  • LinkType.cs — App(0), Web(1), DeepLink(2)
  • WebhookEvent.cs — PushSent(0), PushFailed(1), PushClicked(2)
  • WebhookStatus.cs — Success(0), Failed(1)

에러 코드 상수 (SPMS.Domain/Common/)

  • ErrorCodes.cs — Error_Codes.md 기반 3자리 에러 코드 상수 클래스

Entity 수정

  • Entity의 byte 필드를 해당 Enum 타입으로 변경
  • EF Core Configuration에서 Enum 매핑 확인
  • 빌드 성공 확인
## 설명 도메인 전반에서 사용할 Enum과 에러 코드 상수를 정의한다. DB_Schema.md와 Error_Codes.md 기반으로 Entity의 `byte` 필드를 Enum으로 대체하여 타입 안전성을 확보한다. ## 체크리스트 ### Enum 정의 (`SPMS.Domain/Enums/`) - [x] `Platform.cs` — iOS(0), Android(1), Web(2) - [x] `ServiceStatus.cs` — Active(0), Suspended(1) - [x] `SubTier.cs` — Free(0), Basic(1), Pro(2) - [x] `AdminRole.cs` — Super(0), Manager(1), User(2) - [x] `DeviceStatus.cs` — Active(0), Inactive(1), Blocked(2) - [x] `MessageStatus.cs` — Draft(0), Pending(1), Sending(2), Sent(3), Failed(4), Cancelled(5) - [x] `PushResult.cs` — Success(0), Failed(1) - [x] `PaymentStatus.cs` — Completed(0), Cancelled(1), Refunded(2) - [x] `TargetType.cs` — All(0), Filter(1), CsvFile(2), UserList(3) - [x] `LinkType.cs` — App(0), Web(1), DeepLink(2) - [x] `WebhookEvent.cs` — PushSent(0), PushFailed(1), PushClicked(2) - [x] `WebhookStatus.cs` — Success(0), Failed(1) ### 에러 코드 상수 (`SPMS.Domain/Common/`) - [x] `ErrorCodes.cs` — Error_Codes.md 기반 3자리 에러 코드 상수 클래스 ### Entity 수정 - [x] Entity의 `byte` 필드를 해당 Enum 타입으로 변경 - [x] EF Core Configuration에서 Enum 매핑 확인 - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
High
Status
Available
Type
Feature
labels 2026-02-09 04:13:01 +00:00
seonkyu.kim self-assigned this 2026-02-09 04:13:09 +00:00
seonkyu.kim added this to the Phase 1: 인프라 & 공통 모듈 milestone 2026-02-09 04:13:09 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-09 04:33:44 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-09 04:36:28 +00:00
Sign in to join this conversation.
No description provided.