{"size": 832, "ext": "js", "max_stars_repo_path": "src/api/mockApi.js", "max_stars_repo_name": "Sajotim/ShudiYouxian_BackEnd", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/mockApi.js", "max_issues_repo_name": "Sajotim/ShudiYouxian_BackEnd", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/mockApi.js", "max_forks_repo_name": "Sajotim/ShudiYouxian_BackEnd", "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": 16.9795918367, "max_line_length": 39, "alphanum_fraction": 0.5949519231}
import request from '@/utils/request'

export function mockApiList() {
  return request({
    url: '/user/mockApi/list',
    method: 'get'
  })
}

export function mockApiInfo(id) {
  return request({
    url: '/user/mockApi/info',
    method: 'get',
    params: { id }
  })
}

export function delMockGroup(groupId) {
  return request({
    url: '/user/mockApi/del-group',
    method: 'post',
    data: { id: groupId }
  })
}

export function delMockApi(id) {
  return request({
    url: '/user/mockApi/del',
    method: 'post',
    data: { id }
  })
}

export function saveMockGroup(data) {
  return request({
    url: '/user/mockApi/save-group',
    method: 'post',
    data: { ...data }
  })
}

export function saveMockApi(data) {
  return request({
    url: '/user/mockApi/save',
    method: 'post',
    data: { ...data }
  })
}
