16 lines
871 B
JavaScript
16 lines
871 B
JavaScript
export const extensionsApiMethods = {
|
|
/* ================================================================
|
|
* 扩展&增强 (Extensions)
|
|
* ================================================================ */
|
|
|
|
testIpGeo(ip) { return this.request('/extensions/ip-test', { method: 'POST', data: { ip } }) },
|
|
testContentAudit(text) { return this.request('/extensions/audit-test', { method: 'POST', data: { text } }) },
|
|
|
|
/* AI 辅助 */
|
|
getAiStatus() { return this.request('/ai/status') },
|
|
updateAiSettings(data) { return this.request('/ai/settings', { method: 'POST', data }) },
|
|
generateSeo(data) { return this.request('/ai/seo-generate', { method: 'POST', data }) },
|
|
suggestSummary(data) { return this.request('/ai/summary-suggest', { method: 'POST', data }) },
|
|
suggestTags(data) { return this.request('/ai/tags-suggest', { method: 'POST', data }) },
|
|
}
|