import request from "./request.js"; // 账号密码、邮箱登录 export const userLogin = params => request({ url: "/user/login", method: "post", data: params, }) // 发送验证码 export const sendCode = params => request({ url: "/tool/verify-code", method: "post", data: params, }) // 找回密码 export const resetPassword = params => request({ url: "/user/reset-password", method: "post", data: params, }) // 注册 export const userRegister = params => request({ url: "/user/register", method: "post", data: params, }) // 获取用户信息 export const getUserInfo = params => request({ url: "/user/info", method: "get", data: params, }) // 用户信息更新 export const updateUserInfo = params => request({ url: "/user/update-info", method: "post", data: params, }) // 用户订阅状态更新 export const updateUserSub = params => request({ url: "/user/update-sub", method: "post", data: params, }) // 修改密码 export const updatePassword = params => request({ url: "/user/change-password", method: "post", data: params, }) // 修改邮箱 export const updateUserEmail = params => request({ url: "/user/change-email", method: "post", data: params, }) // 国家、省列表 export const getDistrict = params => request({ url: "/tool/district", method: "get", data: params, }) // 表单提交 export const getFormData = params => request({ url: "/form/data", method: "post", data: params, }) // 获取头部数据 export const getHeadData = params => request({ url: "/Cn/Api/getInfo", method: "post", type: "yongxi", data: params, })