/* * @Author: zwq * @Date: 2020-12-29 16:00:14 * @LastEditors: zwq * @LastEditTime: 2021-01-12 16:38:42 * @Description: */ import request from '@/utils/request' export function majorList(data) { // 获取专业列表 return request({ url: '/basic/major/page', method: 'post', data }) } export function majorDetail(id) { // 获取专业单条数据 return request({ url: '/basic/major/get', method: 'post', data: { id } }) } export function majorUpdate(data) { // 更新专业单条数据 return request({ url: '/basic/major/update', method: 'post', data }) } export function majorAdd(data) { // 新增专业单条数据 return request({ url: '/basic/major/add', method: 'post', data }) } export function majorCode() { // 获取专业code return request({ url: '/basic/major/get-code', method: 'post' }) } export function majorDelete(id) { // 删除专业单条数据 return request({ url: '/basic/major/delete', method: 'post', data: { id } }) }