{"size": 675, "ext": "js", "max_stars_repo_path": "src/api/article.js", "max_stars_repo_name": "pengfei1346/blog-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/article.js", "max_issues_repo_name": "pengfei1346/blog-admin", "max_issues_repo_issues_event_min_datetime": "2021-03-11T04:45:52.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T09:54:00.000Z", "max_forks_repo_path": "src/api/article.js", "max_forks_repo_name": "pengfei1346/blog-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 42.1875, "max_line_length": 156, "alphanum_fraction": 0.6711111111}
import request from '@/utils/request'

export const getArticleList = params => request({ url: `/article`, method: 'get', params})

export const getArticleDetail = params => request({ url: `/article/${params.id}`, method: 'get', params})

export const addArticle = data => request({ url: `/article`, method: 'post', data})


export const modifyArticle = data => request({ url: `/article/${data.id}`, method: 'put', data})


export const deleteArticle = data => request({ url: `/article/${data.id}`, method: 'delete'})

export const uploadImg = data => request({ url: `/article/uploadImg`, method: 'post', data , config: {headers: { 'Content-Type': 'multipart/form-data' }} })
