user.api.js 596 B

12345678910111213
  1. const http = uni.$u.http
  2. // 账号密码登录
  3. export const loginByPwd = ({username, password}, custom = {}) => http.get('app/safeThing/doLogin', {params: {username, password}}, { custom })
  4. // 获取当前用户信息
  5. export const getUserInfo = (custom = {}) => http.get('app/safeThing/getInfo', null, { custom })
  6. // 刷脸登录
  7. export const faceLogin = (id, custom = {}) => http.get('app/safeThing/faceLogin', {params: {safeThingsUserId: id}}, { custom })
  8. // 获取所有用户实名照片
  9. export const getUsersFace = (custom = {}) => http.get('app/safeThing/getUserList', null, { custom })