// 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 default { code, dologin, sendSms, register, getBindUserDeviceId, getDayInfo, getDeviceListDays, getVersion, getIndexData, forgotPassword }