{"size": 599, "ext": "js", "max_stars_repo_path": "src/api/assets.js", "max_stars_repo_name": "larryzl/octopus-vue", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/assets.js", "max_issues_repo_name": "larryzl/octopus-vue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/assets.js", "max_forks_repo_name": "larryzl/octopus-vue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1142857143, "max_line_length": 44, "alphanum_fraction": 0.6293823038}
import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/vue-element-admin/assets/list',
    method: 'get',
    params: query
  })
}

export function fetchAsset(id) {
  return request({
    url: '/vue-element-admin/assets/detail',
    method: 'get',
    params: { id }
  })
}


export function createAsset(data) {
  return request({
    url: '/vue-element-admin/assets/create',
    method: 'post',
    data
  })
}

export function updateAsset(data) {
  return request({
    url: '/vue-element-admin/assets/update',
    method: 'fetch',
    data
  })
}
