主要更新: - 新增 security/ 安全模块 (风险评估、威胁检测、蜜罐等) - Dockerfile 添加 curl 以支持 Docker 健康检查 - 前端页面更新 (管理后台、用户端) - 数据库迁移和 schema 更新 - 新增 kdocs 上传服务 - 添加安全相关测试用例 Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
447 B
JavaScript
18 lines
447 B
JavaScript
import { api } from './client'
|
|
|
|
export async function fetchKdocsStatus(params = {}) {
|
|
const { data } = await api.get('/kdocs/status', { params })
|
|
return data
|
|
}
|
|
|
|
export async function fetchKdocsQr(payload = {}) {
|
|
const body = { force: true, ...payload }
|
|
const { data } = await api.post('/kdocs/qr', body)
|
|
return data
|
|
}
|
|
|
|
export async function clearKdocsLogin() {
|
|
const { data } = await api.post('/kdocs/clear-login', {})
|
|
return data
|
|
}
|