3e0219388a
- 피신고자 관리(/reports): 피신고자 집계 표(총/미처리/사유), 신고 내역 다이얼로그(처리/기각), 블랙리스트 차단 - 블랙리스트(/blacklist): 목록·이메일 차단 추가·해제 - api/reports, api/blacklist, 라우트·좌측 메뉴 추가 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
532 B
TypeScript
23 lines
532 B
TypeScript
import { http } from './http'
|
|
|
|
export interface BlacklistItem {
|
|
id: number
|
|
userId: number | null
|
|
email: string | null
|
|
nickname: string | null
|
|
reason: string | null
|
|
createdAt: string
|
|
}
|
|
|
|
export interface BlacklistAdd {
|
|
userId?: number
|
|
email?: string
|
|
reason?: string
|
|
}
|
|
|
|
export const blacklistApi = {
|
|
list: () => http.get<BlacklistItem[]>('/api/admin/blacklist'),
|
|
add: (body: BlacklistAdd) => http.post<void>('/api/admin/blacklist', body),
|
|
remove: (id: number) => http.del<void>(`/api/admin/blacklist/${id}`),
|
|
}
|