"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.userId = exports.tenantId = exports.setSummaryEvaluate = exports.getSummaryEvaluate = void 0;

var _request = require("@titaui/request");

var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$log;

var tenantId = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantInfo) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Id) || 0;
exports.tenantId = tenantId;
var userId = ((_window$BSGlobal2 = window.BSGlobal) === null || _window$BSGlobal2 === void 0 ? void 0 : (_window$BSGlobal2$log = _window$BSGlobal2.loginUserInfo) === null || _window$BSGlobal2$log === void 0 ? void 0 : _window$BSGlobal2$log.Id) || 0; // 获取评价数据

exports.userId = userId;

var getSummaryEvaluate = function getSummaryEvaluate(data) {
  return (0, _request.rpost)("v1")("summary/getSummaryEvaluate", data);
}; // 添加/编辑 评论


exports.getSummaryEvaluate = getSummaryEvaluate;

var setSummaryEvaluate = function setSummaryEvaluate(data) {
  return (0, _request.rpost)("v1")("summary/setSummaryEvaluate/".concat(data.toUserId), data);
};

exports.setSummaryEvaluate = setSummaryEvaluate;