user.js 482 B

12345678910
  1. import { get, post, link, upload } from '@/utils/request'
  2. export const login = post('/api/user/login')
  3. export const wechatLogin = post('/api/user/wechat-login')
  4. export const phoneLogin = post('/api/user/phone-login')
  5. export const getSmsCode = get('/api/common/get-sms-code')
  6. export const getInfo = get('/api/user/info')
  7. export const updateInfo = post('/api/user/update-info')
  8. export const logout = post('/api/user/logout')
  9. export const uploadFile = upload('/api/attachment/upload')