import { httpGET, httpPOST } from './common/httpFetch' /** * @description 不通类型用户列表接口 * @param { string } orgId 分库orgId * @param { string } start 分页起始 * @param { string } type 人员类型 "教师"、"学生"、"校外" * @param { string } length 每页条数 */ export const getUserList = body => { return httpGET('data/api-u/BbEmployee/list', { body }) } /** * @description 用户添加 - 保存接口 * @param { string } orgId 分库orgId * @param { object } Employee 实体类 */ export const getUserAdd = body => { return httpPOST('data/api-u/BbEmployee/add', { body }) } /** * @description 教师合同类型查询 * @param { string } orgId 分库orgId * @param { object } type 类型 PACT_TYPE 写死 */ export const getTearchPact = body => { return httpGET('data/api-u/glo/getTeacherPact', { body }) } /** * @description 教师合同类型查询 * @param { string } orgId 分库orgId * @param { object } id 用户id */ export const userDel = body => { return httpGET('data/api-u/BbEmployee/delete', { body }) } /** * @description 教师合同类型查询 * @param { string } file 控件File * @param { object } fileSource 默认为空 */ export const UpHeadImg = body => { return httpPOST('data/api-f/files/upHeadImg', { body, type: 'formData' }) } /** * @description 用户添加 - 选择部门接口 * @param { string } orgId 组织部门Id * @param { object } type PEO_TYPE */ export const getPeoType = body => { return httpGET('data/api-u/glo/getPeoType', { body }) } /** * @description 人员批量添加模版下载 * @param { string } type stu(学生),tea(教师),team(团体) */ export const excelDownload = body => { return httpGET('data/api-u/excel/excelDownload', { body }) } /** * @description 人员关系列表查询 * @param { string } orgId 分库orgId * @param { string } start 起始页 0(SCHOOL学校总) 必填 * @param { string } length 长度 必填 * @param { string } name 名字 必填 */ export const relationList = body => { return httpGET('data/api-u/BbEmployeeRelation/list', { body }) } /** * @description 人员关系列表添加 * @param { string } orgId 分库orgId * @param { string } employeeId 被关联人id * @param { string } relationoId 关联人Id * @param { string } relation 关系说明 * @param { string } phone 联系电话 */ export const relationAdd = body => { return httpPOST('data/api-u/BbEmployeeRelation/add', { body }) } /** * @description 人员关系列表删除 * @param { string } orgId 分库orgId * @param { string } employeeId 被关联人id * @param { string } relationoId 关联人Id * @param { string } relation 关系说明 * @param { string } phone 联系电话 */ export const relationDel = body => { return httpGET('data/api-u/BbEmployeeRelation/delete', { body }) } /** * @description 人员关系联系人列表 - 展示列表 * @param { string } orgId 分库orgId * @param { string } id 人员id */ export const relationById = body => { return httpGET('data/api-u/BbEmployeeRelation/findRelationById', { body }) } /** * @description 人员关系联系人列表 - 人员选择列表接口 * @param { string } orgId 分库orgId */ export const relationByOrg = body => { return httpGET('data/api-u/BbEmployee/findEmpsByOrg', { body }) }