import {http} from "../utils/http.js" /** *微信登录 */ export const mark= (code) => { return http({ url:"/api/wxLogin", data:{ code, }, method:"POST" }) } /** * 获取当前的user信息 */ export const getUserInfo=()=>{ return http('/employee/getUserInfo'); } /** * 根据id获取用户头像 */ export const getImageById=(userId)=>{ return http({ url:"/api/getUserInfoById", method:"GET", data:{ userId, } }) } /** * 修改头像 */ export const updateUserImage=(profilePicture)=>{ return http({ url:"/api/updateUserImage", method:"POST", data:{ profilePicture, } }) } /** * 修改昵称 */ export const updateUserName=(username)=>{ return http({ url:"/api/updateUserName", method:"POST", data:{ username, } }) } /** * 获取用户昵称 */ export const getUserNameById=(id)=>{ return http({ url:"/api/getUserNameById", method:"GET", data:{ id, } }) }