| | |
| | | username, |
| | | password, |
| | | code, |
| | | uuid |
| | | uuid, |
| | | } |
| | | return request({ |
| | | url: '/login', |
| | |
| | | // 注册方法 |
| | | export function register(data) { |
| | | return request({ |
| | | url: '/register', |
| | | url: '/system/user/addAgency', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | // 编辑机构 |
| | | export function editAgency(data) { |
| | | return request({ |
| | | url: `/system/user/editAgency`, |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | method: 'get', |
| | | timeout: 20000 |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 获取字典 |
| | | export function getDict(type) { |
| | | return request({ |
| | | url: '/system/dictType/getDictDataByType', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'get', |
| | | params: type |
| | | }) |
| | | } |
| | | |
| | | // 删除图片 |
| | | export function delPic(path) { |
| | | return request({ |
| | | url: '/common/removeFile', |
| | | method: 'delete', |
| | | params: path, |
| | | timeout: 20000 |
| | | }) |
| | | } |
| | | |
| | | // 校验用户名 |
| | | export function checkUserName(data) { |
| | | return request({ |
| | | url: '/system/user/checkUserNameUnique', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 校验手机号 |
| | | export function checkPhone(data) { |
| | | return request({ |
| | | url: '/system/user/checkPhoneUnique', |
| | | headers: { |
| | | isToken: false |
| | | }, |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |