import request from '@/utils/request'

const api = {
  testPlanList: 'test/testPlan/testPlanList',
  addTestPlan: 'test/testPlan/addPlan',
  delTestPlan: 'test/testPlan/deletePlan'
}

export function getTestPlanList(data) {
  return request({
    url: api.testPlanList,
    method: 'get',
    params: data
  })
}

export function addTestPlan(data) {
  return request({
    url: api.addTestPlan,
    method: 'post',
    data: data
  })
}

export function delTestPlan(id) {
  return request({
    url: api.delTestPlan,
    method: 'post',
    data: {id}
  })
}
