import type { CreatePostCommentParams, CreatePostCommentResult, PostComment, PostCompany, PostTag, PublicPost, PublicPostDetail, QueryPublicPostParams } from '@/types/post' import { httpGet, httpPostJson } from '@/request/utils' // ===== 公共接口 ===== export function listPostTagApi() { return httpGet('/post/tag') } export function queryPublicPostApi(params: QueryPublicPostParams) { return httpPostJson>('/post/query', params) } export function getPublicPostDetailApi(id: number) { return httpGet(`/post/${id}`) } export function getPostCompanyById(id: number) { return httpGet(`/post/company/${id}`) } export function createPostCommentApi(params: CreatePostCommentParams) { return httpPostJson(`/post/comment/create`, params) } export function listPostCommentApi(id: number) { return httpGet(`/post/comment/${id}`) } export function deletePostCommentApi(id: number) { return httpPostJson(`/post/comment/delete/${id}`) }