// AI伴侣 import { get, post } from '@/config/api.js' export const code = (data) => { return post('watch/captcha/getCaptcha', data) } export const dologin = (data) => { return post('watch/login/dologin', data) } export const sendSms = (data) => { return post('watch/sms/sendSms', data) } export const register = (data) => { return post('watch/login/register', data) } // 获取已经绑定的设备id export const getBindUserDeviceId = (data) => { return post('watch/device/getBindUserDeviceId', data) } // 获取当日最新数据 export const getDayInfo = (data) => { return post('watch/device/getDayInfo', data) } export const getDeviceListDays = (data) => { return post('watch/device/getDeviceListDays', data) } // 获取版本号 export const getVersion = (data) => { return post('watch/version/index', data) } // 获取首页数据 export const getIndexData = (data) => { return post('watch/device/getIndexData', data) } // 忘记密码 export const forgotPassword = (data) => { return post('watch/login/forgotPassword', data) } // 获取用户信息 export const getUserInfo = (data) => { return post('watch/user/getUserInfo', data) } // 检查二维码是否登录 export const checkLoginCode = (data) => { return post('watch/login/checkLoginCode', data,{custom:{hideLoading:true}}) } // 获取登录二维码 export const getLoginCode = (data) => { return post('watch/login/getLoginCode', data) } export default { code, dologin, sendSms, register, getBindUserDeviceId, getDayInfo, getDeviceListDays, getVersion, getIndexData, forgotPassword, getUserInfo, checkLoginCode, getLoginCode }