Repository navigation
feat(admin): 회원에게 알림 보내기 — 회원 검색 · 개별 알림 - #404
Merged
Merged
Conversation
운영자가 회원 한 명에게 직접 쓴 제목·본문을 보내는 타입(28종째). 공지처럼 사람이 쓴 문장이 곧 내용이라 템플릿 없이 AUTHORED_TYPES 에 넣는다. 계정 알림 그룹, 딥링크 없음(알림함에 머문다), 멱등 키는 보낼 때마다 새로 만드는 message_id. 앱은 모르는 타입도 알림함에 제목·본문으로 세우므로 앱 수정이 없다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
이의 사유 칸에 문의를 적은 사람처럼 문의를 남기지 않은 회원에게는 답할 통로가
없었다(CS 답변은 문의가 있어야 하고 공지는 전원에게 간다).
- GET /admin/users/search: 닉네임(승인·심사 중 둘 다, 부분 일치) 또는 회원 ID.
최근 30일에 이의·신고·문의를 한 회원이 위, 그 안에서는 마지막 활동 최신순.
검색어가 없으면 그 회원들만. 탈퇴자·운영자 제외. 감사 USER_SEARCH.
- POST /admin/users/{id}/messages: 제목 1~50자·본문 1~500자로 OPERATOR_MESSAGE 발행.
야간이면 응답에 푸시 08:00 보류를 알려준다. 감사 USER_MESSAGE(다이제스트).
관리자 DB 계정이 이미 가진 권한(users·verification_appeals·reports·inquiries 읽기,
notifications 쓰기)만 쓴다 — IT 가 AdminSqlCapture 로 확인한다.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜
운영자가 회원에게 말을 걸 통로가 CS 답변뿐이라, 이의 사유 칸에 문의를 적은 사람처럼 문의를 남기지 않은 회원에게 답할 방법이 없었다. 공지는 전원에게 가서 대신 쓸 수 없다.
무엇
OPERATOR_MESSAGE(28종째): 운영자가 쓴 제목·본문 그대로. 계정 알림 그룹, 딥링크 없음(알림함에 머무름), 멱등 키는 보낼 때마다 새message_id. 앱은 모르는 타입도 알림함에 제목·본문으로 세우므로 앱 수정 없음.GET /api/v1/admin/users/search?q=&size=: 닉네임(승인·심사 중 둘 다, 부분 일치, 대소문자 무시) 또는 회원 ID. 최근 30일 이의·신고·문의한 회원이 위, 그 안은 마지막 활동 최신순.q없으면 그 회원들만. 탈퇴자·운영자 제외. 감사USER_SEARCH.POST /api/v1/admin/users/{id}/messages{title, body}: 제목 150자·본문 1500자. 응답에pushDeferredToMorning(야간이면 08:00 보류). 감사USER_MESSAGE(다이제스트).notifications.type은 varchar). 관리자 DB 계정 권한 추가 없음 — IT 가AdminSqlCapture로 확인.프런트
AdminPage
649cfa8(main) — 「회원에게 알림」 화면, 이의 상세의 「이 회원에게 알림 보내기」 링크. 서버 prod 반영 뒤cf:deploy.테스트
AdminUserMessageIT5건(권한 403 · 검색 순서/집계/ID 검색/탈퇴 제외 · 와일드카드 · 발송/알림함/감사 · 입력 오류)./gradlew test통과🤖 Generated with Claude Code