perf(admin): lazy routes and nav badges

This commit is contained in:
2025-12-13 21:13:57 +08:00
parent 235ba28cc8
commit 49bc8b83b1
32 changed files with 328 additions and 68 deletions

View File

@@ -5,6 +5,11 @@ export async function fetchFeedbacks(status = '') {
return data
}
export async function fetchFeedbackStats() {
const { data } = await api.get('/feedbacks', { params: { limit: 1, offset: 0 } })
return data?.stats
}
export async function replyFeedback(feedbackId, reply) {
const { data } = await api.post(`/feedbacks/${feedbackId}/reply`, { reply })
return data
@@ -19,4 +24,3 @@ export async function deleteFeedback(feedbackId) {
const { data } = await api.delete(`/feedbacks/${feedbackId}`)
return data
}