"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.topDynamic = exports.setSummaryAlreadyRead = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;

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

var _BSGlobal$loginUserIn;

// @ts-ignore
var userId = BSGlobal && ((_BSGlobal$loginUserIn = BSGlobal.loginUserInfo) === null || _BSGlobal$loginUserIn === void 0 ? void 0 : _BSGlobal$loginUserIn.Id) || 0;

var topDynamic = function topDynamic(_ref) {
  var feedId = _ref.feedId;
  return (0, _request.rget)('v2')("user/feednew/setTop?feedId=".concat(feedId));
};

exports.topDynamic = topDynamic;

var cancelTopDynamic = function cancelTopDynamic(_ref2) {
  var feedId = _ref2.feedId;
  return (0, _request.rget)('v2')("user/feednew/cancelTop?feedId=".concat(feedId));
};

exports.cancelTopDynamic = cancelTopDynamic;

var collectDynamic = function collectDynamic(_ref3) {
  var feedId = _ref3.feedId;
  return (0, _request.rput)('v2')("user/feed/Collect?feed_id=".concat(feedId));
};

exports.collectDynamic = collectDynamic;

var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
  var feedId = _ref4.feedId;
  return (0, _request.rdelete)('v2')("user/feed/CancelCollect?feed_id=".concat(feedId));
};

exports.cancelCollectDynamic = cancelCollectDynamic;

var deleteDynamic = function deleteDynamic(_ref5) {
  var feedId = _ref5.feedId;
  return (0, _request.rdelete)('v2')("user/feed/Delete?feed_id=".concat(feedId));
};

exports.deleteDynamic = deleteDynamic;

var setSummaryAlreadyRead = function setSummaryAlreadyRead(_ref6) {
  var feedId = _ref6.feedId;
  return (0, _request.rpost)('v1')("summary/remind/read/".concat(feedId));
};

exports.setSummaryAlreadyRead = setSummaryAlreadyRead;