"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.saveUserInfo = exports.getUserInfoFun = void 0;

var _qs = _interopRequireDefault(require("qs"));

var _request = require("../../utils/request");

var _bsGlobal = require("../../utils/bs-global");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var getUserInfoFun = function getUserInfoFun() {
  return (0, _request.rpost)("v1")("manage/user/profile?toUserId=".concat((0, _bsGlobal.getUserInfo)().Id));
};

exports.getUserInfoFun = getUserInfoFun;

var saveUserInfo = function saveUserInfo(_ref) {
  var data = _ref.data;
  return (0, _request.rput)("v1")("manage/user/updatebasic", data, {
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    transformRequest: _qs["default"].stringify
  });
};

exports.saveUserInfo = saveUserInfo;