improvement: 서비스 스코프 정책 고정 (#199) #200
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#200
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#199-service-scope-policy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
🔗 관련 이슈 (Related Issues)
Closes #199
🛠️ 작업 내용 (Changes)
SPMS.Domain/Common/ErrorCodes.cs— ServiceScopeRequired("133") 추가SPMS.Domain/Exceptions/SpmsException.cs— Forbidden 팩토리 메서드 추가SPMS.API/Middlewares/ServiceCodeMiddleware.cs— 3-카테고리 라우팅 (SKIP/REQUIRED/OPTIONAL_FOR_ADMIN)SPMS.API/Filters/SpmsHeaderOperationFilter.cs— stats/device-list X-Service-Code optional 표시SPMS.API/Controllers/StatsController.cs— GetOptionalServiceId() 적용 (8개 액션)SPMS.API/Controllers/DeviceController.cs— GetListAsync만 GetOptionalServiceId() 적용SPMS.Application/Interfaces/IStatsService.cs— 8개 메서드 long? serviceIdSPMS.Application/Interfaces/IDeviceService.cs— GetListAsync long? serviceIdSPMS.Application/Services/StatsService.cs— null serviceId 전체 서비스 모드 처리SPMS.Application/Services/DeviceService.cs— GetListAsync null serviceId 처리SPMS.Domain/Interfaces/IDailyStatRepository.cs— GetByDateRangeAsync/GetByDateAsync long?SPMS.Domain/Interfaces/IPushSendLogRepository.cs— GetHourlyStatsAsync/GetFailureStatsAsync long?SPMS.Domain/Interfaces/IDeviceRepository.cs— GetPagedAsync long?SPMS.Infrastructure/.../DailyStatRepository.cs— 조건부 WHERE 분기SPMS.Infrastructure/.../PushSendLogRepository.cs— 조건부 WHERE 분기SPMS.Infrastructure/.../DeviceRepository.cs— 조건부 WHERE 분기📢 리뷰어 참고 사항 (To Reviewers)
✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)
빌드: 경고 0개, 오류 0개
- ErrorCodes.ServiceScopeRequired("133") 추가 - SpmsException.Forbidden 팩토리 추가 - ServiceCodeMiddleware 3-카테고리 라우팅 (SKIP/REQUIRED/OPTIONAL_FOR_ADMIN) - Swagger 필터 stats/device-list X-Service-Code optional 표시 - StatsController/DeviceController GetOptionalServiceId() 적용 - IStatsService/IDeviceService/레포지토리 시그니처 long? serviceId 변경 - StatsService/DeviceService null serviceId 전체 서비스 모드 처리 Closes #199