import { request } from '@/utils/http'
import type { ResultData } from '@/utils/http'

export type ArticleDetailType = {
  id: number
  title: string
  content: string
  createTime: string
  readCount: number
  categoryId: number
  articleId: number
}

export type ArticleDetailMenuType = {
  level: number
  text: string
  children: ArticleDetailMenuType[]
}

export const getUserInfo = (): Promise<ResultData<ArticleDetailType>> =>
  request.get(`web/userinfo`,{
      Headers: {

      }
  })



