user.js
1.7 KB
"use strict";
const uni_modules_uviewPlus_index = require("../uni_modules/uview-plus/index.js");
const userLogin = (data) => uni_modules_uviewPlus_index.http.post("/login", data);
const userWxLogin = (data, config = {}) => uni_modules_uviewPlus_index.http.post("/wechat/login", data, config);
const carInfoAdd = (data) => uni_modules_uviewPlus_index.http.post("/registration/add", data, { custom: { auth: true } });
const carInfoEdit = (data) => uni_modules_uviewPlus_index.http.post("/registration/edit", data, { custom: { auth: true } });
const getAdverList = (data) => uni_modules_uviewPlus_index.http.get(`/system/notice/list`, { params: data, custom: { auth: true } });
const getUserCarInfo = (data) => uni_modules_uviewPlus_index.http.get(`/registration/listRegistration`, { params: data, custom: { auth: true } });
const getUserInfo = (data) => uni_modules_uviewPlus_index.http.get("/system/user/profile", { custom: { auth: true } });
const updateUserInfo = (data) => uni_modules_uviewPlus_index.http.put("/system/user/profile", data, { custom: { auth: true } });
const userCancel = () => uni_modules_uviewPlus_index.http.get("/system/user/deRegistration", { custom: { auth: true } });
const getCodeImg = (data) => uni_modules_uviewPlus_index.http.get("/captchaImage");
exports.carInfoAdd = carInfoAdd;
exports.carInfoEdit = carInfoEdit;
exports.getAdverList = getAdverList;
exports.getCodeImg = getCodeImg;
exports.getUserCarInfo = getUserCarInfo;
exports.getUserInfo = getUserInfo;
exports.updateUserInfo = updateUserInfo;
exports.userCancel = userCancel;
exports.userLogin = userLogin;
exports.userWxLogin = userWxLogin;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/user.js.map