{"size": 662, "ext": "js", "max_stars_repo_path": "ui/src/api/chart.js", "max_stars_repo_name": "hf200012/oceanus.bi", "max_stars_repo_stars_event_min_datetime": "2021-04-14T12:44:37.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T06:19:56.000Z", "max_issues_repo_path": "ui/src/api/chart.js", "max_issues_repo_name": "eyesmoons/oceanus.bi", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ui/src/api/chart.js", "max_forks_repo_name": "eyesmoons/oceanus.bi", "max_forks_repo_forks_event_min_datetime": "2021-04-14T10:22:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-05T06:38:11.000Z"}
{"max_stars_count": 78, "max_issues_count": null, "max_forks_count": 32, "avg_line_length": 16.55, "max_line_length": 38, "alphanum_fraction": 0.6223564955}
import request from '@/utils/request'

export function createChart(data) {
  return request({
    url: '/rest/bi/chart/create',
    method: 'POST',
    data
  })
}

export function updateChart(data) {
  return request({
    url: '/rest/bi/chart/update',
    method: 'PUT',
    data: data
  })
}

export function getChartById(id) {
  return request({
    url: `/rest/bi/chart/tables/${id}`
  })
}

export function deleteChart(data) {
  return request({
    url: `/rest/bi/chart/delete`,
    method: 'delete',
    params:data
  })
}

export function chartList(params) {
  return request({
    url: `/rest/bi/chart/list`,
    method:'get',
    params:params
  })
}
