前端-官网内容管理开发

This commit is contained in:
eafonyang
2026-07-30 18:27:42 +08:00
parent e71d18b331
commit fda4fa8627
38 changed files with 4253 additions and 3 deletions
@@ -0,0 +1,13 @@
import { request } from '../request';
export function fetchGetI18nEntries(params?: { keyword?: string }) {
return request<{ items: Api.Www.I18nEntry[]; total: number }>({ url: '/www/i18n', method: 'get', params });
}
export function fetchUpdateI18nEntry(id: number, data: { value_zh: string; value_en: string }) {
return request<Api.Www.I18nEntry>({ url: `/www/i18n/${id}`, method: 'put', data });
}
export function fetchBatchUpdateI18nEntries(data: Array<{ id: number; value_zh: string; value_en: string }>) {
return request({ url: '/www/i18n/batch', method: 'put', data });
}