/*
 * @Author: your name
 * @Date: 2021-09-09 11:31:23
 * @LastEditTime: 2021-09-30 17:55:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/pages/user/Login/service.ts
 */


import { request } from 'umi';




export const login  = (data: API.LoginParams)=>{
    
    return request('/api/pfm/login', {
        method: 'POST',
        data
    });

}
// 修改密码
export const updateUserInfo  = (data: API.EditUserInfoType)=>{
    
    return request('/api/pfm/user/modifyPwd', {
        method: 'POST',
        data
    });

}