improvement: TagCode 도입 — 태그 식별자를 4자리 랜덤 코드로 변경 (#269) #270
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#270
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#269-tag-code-identifier"
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 #269
🛠️ 작업 내용 (Changes)
SPMS.Domain/Entities/Tag.cs— TagCode 프로퍼티 추가SPMS.Domain/Interfaces/ITagRepository.cs— TagCode 조회 메서드 3개 추가SPMS.Domain/Interfaces/IDeviceRepository.cs— tags 파라미터 List? → List?SPMS.Infrastructure/.../TagConfiguration.cs— TagCode varchar(4), UNIQUE(ServiceId, TagCode)SPMS.Infrastructure/.../TagRepository.cs— 새 메서드 3개 구현SPMS.Infrastructure/.../DeviceRepository.cs— tags → tagIds 시그니처 변경SPMS.Infrastructure/Workers/PushWorker.cs— group 케이스 tag_code → tag_id 변환, ParseTags 개선SPMS.Application/DTOs/Tag/*— tag_id → tag_code 변경 (4개 파일)SPMS.Application/DTOs/Device/*— tags List → List (4개 파일)SPMS.Application/DTOs/Push/*— tags List → List (2개 파일)SPMS.Application/Interfaces/ITagService.cs— Update/Delete 시그니처에 serviceId 추가SPMS.Application/Services/TagService.cs— GenerateUniqueTagCodeAsync, TagCode 기반 CRUDSPMS.Application/Services/DeviceService.cs— ITagRepository DI, tag_code ↔ tag_id 변환SPMS.API/Controllers/TagController.cs— Update/Delete에 GetServiceId() 전달SPMS.API/Middlewares/ServiceCodeMiddleware.cs— /v1/in/tag/list만 OPTIONALAddTagCode— 컬럼 추가 + 기존 태그에 랜덤 코드 할당📢 리뷰어 참고 사항 (To Reviewers)
✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)
빌드 성공: 경고 0, 오류 0