18 lines
348 B
JavaScript
18 lines
348 B
JavaScript
|
"use strict";
|
||
|
const utils_http = require("../utils/http.js");
|
||
|
function loginByCode(data) {
|
||
|
return utils_http.http({
|
||
|
url: "/api/wxLogin",
|
||
|
data,
|
||
|
method: "post"
|
||
|
});
|
||
|
}
|
||
|
function userInfo() {
|
||
|
return utils_http.http({
|
||
|
url: "/api/getUserInfo",
|
||
|
method: "get"
|
||
|
});
|
||
|
}
|
||
|
exports.loginByCode = loginByCode;
|
||
|
exports.userInfo = userInfo;
|