import request from "@/utils/request.js"; import {host} from "@/config/host.js"; /** * 登录 * @param {Object} data */ export function testLogin(data) { return request({ url: `${host}/user/gettoken`, method: "get", data }); } export function login(data) { return request({ url: `${host}`, method: "method", data }); } export function userDetail() { return request({ url: `${host}/user/detail`, method: "post", }); } export function userExtends(data) { return request({ url: `${host}/user/user-count`, method: "post", data }); } export function userCoupons(data) { return request({ url: `${host}/user/coupons-list`, method: "get", data }); } export function appletLogin(code){ return request({ url: `${host}/user/login`, method: "post", data:{ code:code } }) } /** * 更新用户详情 * @param data */ export function updateUserDetail(data){ return request({ url:"user/updateInfo", method:'post', data:data }) }