/* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 * @LastEditTime: 2023-10-30 14:37:28 * @LastEditors: DY * @Description: */ import request from '@/utils/request' // 创建部门 export function createCoreDepartment(data) { return request({ url: '/base/core-department/create', method: 'post', data: data }) } // 更新部门 export function updateCoreDepartment(data) { return request({ url: '/base/core-department/update', method: 'put', data: data }) } // 删除部门 export function deleteCoreDepartment(id) { return request({ url: '/base/core-department/delete?id=' + id, method: 'delete' }) } // 获得部门 export function getCoreDepartment(id) { return request({ url: '/base/core-department/get?id=' + id, method: 'get' }) } // 获得部门code export function getCode() { return request({ url: '/base/core-department/getCode', method: 'get' }) } // 获得部门分页 export function getCoreDepartmentPage(query) { return request({ url: '/base/core-department/page', method: 'get', params: query }) } // 获得所有列表 export function getCoreDepartmentList(query) { return request({ url: '/base/core-department/listAll', method: 'get', params: query }) }