import http from '@/http/request.ts'
// import http from '../request.ts'
export const matters = (params: any) => http.get('/api/v1/zzsfw/matters', {params}) //获取菜单和链接
export const poclicyList = (params: any) => http.get('/api/v1/poclicy/list', {params}) //政策条例列表
export const topTen = (params: any) => http.get('/api/v1/zzsfw/top10', {params})
export const health = (params: any) => http.get('/health', {params})

export const getToken = (data: any) => http.post('/api/v1/sso/token', data) //获取token
export const getUserInfo = (data: any) => http.post('a/pi/v1/sso/getUserInfo', data) //获取用户信息

export const zones = (params: any) => http.get('/api/v1/zzsfw/zones', {params}) //获取服务板块列表
export const windows = (params: any) => http.get('/api/v1/zzsfw/windows', {params}) //获取服务窗口列表
export const departments = (params: any) => http.get('/api/v1/zzsfw/departments', {params}) //获取部门
export const matterList = (params: any) => http.get('/api/v1/zzsfw/matter-list', {params}) //获取事项列表
export const matteDetail = (id: any) => http.get(`/api/v1/zzsfw/matter/${id}`) // 服务指南详情

export const download = (fileId: any) => http.get(`/api/v1/common/anonymous/file/download/${fileId}`, {responseType: 'blob'}) // 服务指南详情
