import { IDocument } from "@think/share"; import { HttpClient } from "./HttpClient"; /** * 更新文档阅读量 * @param id * @returns */ export const updateDocumentViews = (id: string) => { return HttpClient.get("/document/views/" + id); }; /** * 获取公开文档详情 * @param id * @param data * @returns */ export const getPublicDocumentDetail = ( id: string, data: Partial> ): Promise => { return HttpClient.post("/document/public/detail/" + id, data); };