/*
 * @Author: chris
 * @Date: 2026-01-19 16:49:53
 * @LastEditors: chris
 * @LastEditTime: 2026-01-19 16:59:22
 */
import { http } from '@/http/http'

export interface IKnowledgeListQuery {
  deptId: number
  content?: string
  pageNum: number
  pageSize: number
}

export interface IKnowledge {
  id: number
  title: string
  content: string
  createTime: string
  updateTime: string
}

// 获取知识列表
export async function getKnowledgeList(query: IKnowledgeListQuery) {
  return await http.get<IKnowledge[]>('/business/article/list', query)
}
