| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- import { ApiInstance } from '../type'
- interface LoginData {
- userName: string
- passWord: string
- captcha: string
- system: string
- captchaId: number
- }
- interface PasswordEditData {
- password: string
- newpassword: string
- }
- /**
- * SysUserVo,平台用户表VO
- */
- /**
- * SysUserVo,平台用户表VO
- */
- export interface Request {
- /**
- * 用户状态 : 1 正常 0 锁定
- */
- accountStatus?: number;
- /**
- * 应聘表
- */
- applicant?: string;
- /**
- * 银行卡
- */
- bankCard?: string;
- /**
- * 银行卡号
- */
- bankCardId?: string;
- /**
- * 开户行
- */
- bankName?: string;
- /**
- * 出生日期
- */
- birthday?: string;
- /**
- * 市
- */
- city?: string;
- /**
- * 劳动合同
- */
- contract?: string;
- /**
- * 部门id
- */
- deptId?: string;
- /**
- * 区
- */
- district?: string;
- /**
- * 学历
- */
- education?: string;
- /**
- * 紧急联系人姓名
- */
- emergencyContactName?: string;
- /**
- * 紧急联系人电话
- */
- emergencyContactTel?: string;
- /**
- * 毕业时间
- */
- graduationTime?: string;
- /**
- * 健康状况
- */
- health?: string;
- /**
- * 平台用户id
- */
- id?: string;
- /**
- * 身份证号
- */
- identity?: string;
- /**
- * 身份证有效期止期
- */
- identityTimeEnd?: string;
- /**
- * 身份证有效期起期
- */
- identityTimeStart?: string;
- /**
- * 是否是计算机专业 1 是 0 否
- */
- isComputer?: string;
- /**
- * 是否启用 1 启用 0禁用
- */
- isEnable?: number;
- /**
- * 户籍
- */
- koseki?: string;
- /**
- * 领导人id
- */
- leaderId?: string;
- /**
- * 领导人姓名
- */
- leaderName?: string;
- /**
- * 离职表
- */
- leaveTable?: string;
- /**
- * 详细地址
- */
- liveAddress?: string;
- /**
- * 婚姻状况
- */
- maritalStatus?: string;
- /**
- * 手机号
- */
- mobile?: string;
- /**
- * 姓名
- */
- name?: string;
- /**
- * 民族
- */
- nations?: string;
- page?: Page;
- pages?: number;
- /**
- * 密码
- */
- password?: string;
- /**
- * 政治面貌
- */
- politicsStatus?: string;
- /**
- * 邮政编码
- */
- postalCode?: string;
- /**
- * 省
- */
- province?: string;
- /**
- * 展业资格证
- */
- qualification?: string;
- /**
- * 推荐人id
- */
- referrerId?: string;
- /**
- * 推荐人id
- */
- referrerName?: string;
- /**
- * 角色名称集合
- */
- roleNameList?: string[];
- /**
- * 薪资
- */
- salary?: string;
- /**
- * 薪资等级
- */
- salaryLevel?: string;
- /**
- * 定薪表
- */
- salaryTable?: string;
- /**
- * 毕业学校
- */
- school?: string;
- /**
- * 性别
- */
- sex?: string;
- /**
- * 身份证正面
- */
- sfz1?: string;
- /**
- * 身份证反面
- */
- sfz2?: string;
- size?: number;
- /**
- * 系统编码
- */
- systemCode?: string;
- /**
- * 用户类型1.前线人员 2:后线人员 3:合伙人 4:工作室管理员 5:团队长 6:个代 7:电销 8 渠道
- */
- typeAttr?: string;
- /**
- * 平台信息id
- */
- userInfoId?: string;
- /**
- * 用户名
- */
- username?: string;
- [property: string]: any;
- }
- /**
- * Page
- */
- /**
- * PageObject
- */
- /**
- * OrderItem
- */
- /**
- * Page
- */
- export interface Page {
- countId?: string;
- current?: number;
- maxLimit?: number;
- optimizeCountSql?: PageObject;
- optimizeJoinOfCountSql?: boolean;
- orders?: OrderItem[];
- pages?: number;
- records?: { [key: string]: any }[];
- searchCount?: PageObject;
- size?: number;
- total?: number;
- [property: string]: any;
- }
- /**
- * PageObject
- */
- export interface PageObject {
- countId?: string;
- current?: number;
- maxLimit?: number;
- optimizeCountSql?: PageObject;
- optimizeJoinOfCountSql?: boolean;
- orders?: OrderItem[];
- pages?: number;
- records?: { [key: string]: any }[];
- searchCount?: PageObject;
- size?: number;
- total?: number;
- [property: string]: any;
- }
- /**
- * OrderItem
- */
- export interface OrderItem {
- asc?: boolean;
- column?: string;
- [property: string]: any;
- }
- /**
- * SysRoleVo,角色列表
- */
- export interface SysRoleVo {
- /**
- * 角色id
- */
- id?: string;
- [property: string]: any;
- }
- const userApi = (axiosInstance: ApiInstance) => ({
- // 登录
- login: (data: LoginData) => axiosInstance.post('auth/login', data, {
- }),
- // 获取权限
- permission: () => axiosInstance.get('auth/getUserPer', {
- }),
- // 修改密码
- passwordEdit: (data: PasswordEditData) => axiosInstance.post('user/password/edit', data, {
- baseURL: '/mock/',
- }),
- //成员列表分页
- memberList: (data: Page) => axiosInstance.post('/userInfo/getUserInfoList', data, { }),
- //成员全部列表
- AllMemberList: (data: SysRoleVo) => axiosInstance.post('/userInfo/getUser', data, { }),
- //成员详情
- getUserInfo: (params: Request) => axiosInstance.get('/userInfo/getUserInfo', {params}),
- //编辑成员
- updateUserInfo: (data: SysRoleVo) => axiosInstance.post('/userInfo/update', data, { }),
- //获取是否可以资源转移信息
- getTransferInfo: (params: Request) => axiosInstance.get('/userInfo/getTransferInfo', {params}),
-
- //资源转移
- transfer: (data: Request) => axiosInstance.post('/userInfo/transfer', data, { }),
- //检测是否可进行机构变更
- checkChangeDept: (data: Request) => axiosInstance.post('/userInfo/checkChangeDept', data, { }),
- //机构变更
- changeDept: (data: Request) => axiosInstance.post('/userInfo/changeDept', data, { }),
- //删除成员
- userDelete: (data: {id:string[]}) => axiosInstance.post('/userInfo/delete', data, { }),
- //离职
- userQuitApply: (data: {id:string[]}) => axiosInstance.post('/userInfo/userQuitApply', data, { }),
-
-
-
-
- })
- export default userApi
|