var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/comment/service.ts
var service_exports = {};
__export(service_exports, {
  delComment: () => delComment,
  delCommentReply: () => delCommentReply,
  getCommentList: () => getCommentList,
  getCommentReplyList: () => getCommentReplyList,
  postComment: () => postComment,
  postCommentReply: () => postCommentReply,
  putCommentLike: () => putCommentLike,
  putCommentReplyLike: () => putCommentReplyLike,
  putCommentSelection: () => putCommentSelection
});
module.exports = __toCommonJS(service_exports);
var import_axios = require("../_util/axios");
var import_constants = require("../_util/constants");
var commentGetWay = `${import_constants.EHR_SERVICE}/api/comment`;
var postComment = ({ accessToken, ...data }) => (0, import_axios.post)({ url: `${commentGetWay}/ct/comments`, data, headers: { accessToken } });
var delComment = ({ accessToken, id }) => (0, import_axios.del)({ url: `${commentGetWay}/ct/comments/${id}`, headers: { accessToken } });
var getCommentList = ({ accessToken, ...data }) => (0, import_axios.get)({ url: `${commentGetWay}/ct/comments`, data, headers: { accessToken } });
var postCommentReply = ({ accessToken, ...data }) => (0, import_axios.post)({ url: `${commentGetWay}/ct/comments/reply`, data, headers: { accessToken } });
var delCommentReply = ({ accessToken, id }) => (0, import_axios.del)({ url: `${commentGetWay}/ct/comments/reply/${id}`, headers: { accessToken } });
var getCommentReplyList = ({ accessToken, ...data }) => (0, import_axios.get)({ url: `${commentGetWay}/ct/comments/reply`, data, headers: { accessToken } });
var putCommentSelection = ({ accessToken, id, flag }) => (0, import_axios.put)({ url: `${commentGetWay}/ct/comments/${id}/chosen/${flag}`, headers: { accessToken } });
var putCommentLike = ({ accessToken, id, flag }) => (0, import_axios.put)({ url: `${commentGetWay}/ct/comments/${id}/like/${flag}`, headers: { accessToken } });
var putCommentReplyLike = ({ accessToken, id, flag }) => (0, import_axios.put)({ url: `${commentGetWay}/ct/comments/reply/${id}/like/${flag}`, headers: { accessToken } });
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  delComment,
  delCommentReply,
  getCommentList,
  getCommentReplyList,
  postComment,
  postCommentReply,
  putCommentLike,
  putCommentReplyLike,
  putCommentSelection
});
