auth.js 473 B

123456789101112131415161718
  1. "use strict";
  2. const utils_request = require("../utils/request.js");
  3. function wechatLogin(data) {
  4. return utils_request.request({
  5. url: "/miniapp/auth/login",
  6. method: "POST",
  7. data
  8. });
  9. }
  10. function getAgreement(type) {
  11. return utils_request.request({
  12. url: `/miniapp/auth/agreement?type=${type}`,
  13. method: "GET"
  14. });
  15. }
  16. exports.getAgreement = getAgreement;
  17. exports.wechatLogin = wechatLogin;
  18. //# sourceMappingURL=../../.sourcemap/mp-weixin/api/auth.js.map