import request from '@/utils/request'
import { URL } from '@/config'

export function getBaseList(params) {
  return request({
    url: URL.edu.contractcategory.getList,
    method: 'get',
    params,
  })
}

export function getChooseList(params) {
  return request({
    url: URL.edu.contractcategory.getChooseList,
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: URL.edu.contractcategory.add,
    method: 'post',
    data,
  })
}

export function editState(data) {
  return request({
    url: URL.edu.contractcategory.editState,
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: URL.edu.contractcategory.doDelete,
    method: 'post',
    data,
  })
}
