feat(admin): migrate admin UI to Vue3
This commit is contained in:
27
admin-frontend/src/api/email.js
Normal file
27
admin-frontend/src/api/email.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import { api } from './client'
|
||||
|
||||
export async function fetchEmailSettings() {
|
||||
const { data } = await api.get('/email/settings')
|
||||
return data
|
||||
}
|
||||
|
||||
export async function updateEmailSettings(payload) {
|
||||
const { data } = await api.post('/email/settings', payload)
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchEmailStats() {
|
||||
const { data } = await api.get('/email/stats')
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchEmailLogs(params) {
|
||||
const { data } = await api.get('/email/logs', { params })
|
||||
return data
|
||||
}
|
||||
|
||||
export async function cleanupEmailLogs(days) {
|
||||
const { data } = await api.post('/email/logs/cleanup', { days })
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user