"use strict";
const utils_request = require("../utils/request.js");
const api = {
  wxLogin(data) {
    return utils_request.request("/login/wechat/mobile", data, "post", true);
  },
  mobileLogin(data) {
    return utils_request.request("/login/mobile", data, "post", true);
  },
  getCode(data) {
    return utils_request.request("/code/phone", data, "post", true);
  },
  getHomeData(data) {
    return utils_request.request("/index/clinical", data, "get", true);
  },
  getHomeStatics(data) {
    return utils_request.request("/clinical/stats", data, "get", true);
  },
  getArticleDetail(id) {
    return utils_request.request("/clinical/article/" + id, {}, "get", false);
  },
  getVideoDetail(id) {
    return utils_request.request("/clinical/video/" + id, {}, "get", false);
  },
  collectArticle(id) {
    return utils_request.request("/clinical/article/collect/" + id, {}, "post", false);
  },
  cancelCollectArticle(id) {
    return utils_request.request("/clinical/article/collect/" + id, {}, "delete", false);
  },
  collectVideo(id) {
    return utils_request.request("/clinical/video/collect/" + id, {}, "post", false);
  },
  cancelCollectVideo(id) {
    return utils_request.request("/clinical/video/collect/" + id, {}, "delete", false);
  },
  addVideoComment(id, data) {
    return utils_request.request("/clinical/video/comment/" + id, data, "post", false, "application/json");
  },
  delVideoComment(id) {
    return utils_request.request("/clinical/video/comment/" + id, {}, "delete", false);
  },
  topVideoComment(id) {
    return utils_request.request("/clinical/video/comment/top/" + id, {}, "put", false);
  },
  cancelTopVideoComment(id) {
    return utils_request.request("/clinical/video/comment/top/" + id, {}, "delete", false);
  },
  addArticleComment(id, data) {
    return utils_request.request("/clinical/article/comment/" + id, data, "post", false, "application/json");
  },
  delArticleComment(id) {
    return utils_request.request("/clinical/article/comment/" + id, {}, "delete", false);
  },
  topArticleComment(id) {
    return utils_request.request("/clinical/article/comment/top/" + id, {}, "put", false);
  },
  cancelTopArticleComment(id) {
    return utils_request.request("/clinical/article/comment/top/" + id, {}, "delete", false);
  },
  getArticleComment(data) {
    return utils_request.request("/clinical/article/comment/page", data, "post", false, "application/json");
  },
  getVideoComment(data) {
    return utils_request.request("/clinical/video/comment/page", data, "post", false, "application/json");
  },
  searchArticle(data) {
    return utils_request.request("/clinical/article/search", data, "post", true, "application/json");
  },
  searchVideo(data) {
    return utils_request.request("/clinical/video/search", data, "post", true, "application/json");
  },
  searchDoctor(data) {
    return utils_request.request("/clinical/doctor/search", data, "post", true, "application/json");
  },
  searchHospital(data) {
    return utils_request.request("/clinical/hospital/search", data, "post", true, "application/json");
  },
  getStaticDoctor(id) {
    return utils_request.request("/clinical/stats/doctor/" + id, {}, "get", false);
  },
  getStaticSick(data) {
    return utils_request.request("/clinical/stats/label", data, "get", false);
  },
  getStaticHospital(id) {
    return utils_request.request("/clinical/stats/hospital/" + id, {}, "get", false);
  },
  getUserInfo() {
    return utils_request.request("/user", {}, "get", false);
  },
  getExchangeStatic() {
    return utils_request.request("/exchange/stats", {}, "get", false);
  },
  getExchangeStaticUser(id) {
    return utils_request.request("/exchange/stats/user/" + id, {}, "get", false);
  },
  searchExchage(data) {
    return utils_request.request("/exchange/search", data, "post", true, "application/json");
  },
  searchExchageGood(data) {
    return utils_request.request("/exchange/list", data, "post", true, "application/json");
  },
  getExchangeDetail(id) {
    return utils_request.request("/exchange/" + id, {}, "get", false);
  },
  getExchangeVote(id) {
    return utils_request.request("/exchange/vote/" + id, {}, "get", false);
  },
  exchangeCollect(id) {
    return utils_request.request("/exchange/collect/" + id, {}, "post", false);
  },
  cancelExchangeCollect(id) {
    return utils_request.request("/exchange/collect/" + id, {}, "delete", false);
  },
  addExchangeComment(id, data) {
    return utils_request.request("/exchange/comment/" + id, data, "post", false);
  },
  delExchangeComment(id) {
    return utils_request.request("/exchange/comment/" + id, {}, "delete", false);
  },
  topExchangeComment(id) {
    return utils_request.request("/exchange/comment/top/" + id, {}, "put", false);
  },
  cancleTopExchangeComment(id) {
    return utils_request.request("/exchange/comment/top/" + id, {}, "delete", false);
  },
  getExchangeComment(data) {
    return utils_request.request("/exchange/comment/page", data, "post", false, "application/json");
  },
  getExchangeCommentUser(data) {
    return utils_request.request("/exchange/user/comment/page", data, "post", false, "application/json");
  },
  addExchange(data) {
    return utils_request.request("/exchange", data, "post", false, "application/json");
  },
  getDraftList(data) {
    return utils_request.request("/exchange/draft/search", data, "post", false, "application/json");
  },
  saveDraft(data) {
    return utils_request.request("/exchange/draft", data, "post", false, "application/json");
  },
  delDraft(id) {
    return utils_request.request("/exchange/draft/" + id, {}, "delete", false);
  },
  getVideoCommentUser(data) {
    return utils_request.request("/clinical/video/user/comment/page", data, "post", false, "application/json");
  },
  getArticleCommentUser(data) {
    return utils_request.request("/clinical/article/user/comment/page", data, "post", false, "application/json");
  },
  getMyCollect(data) {
    return utils_request.request("/user/collect/search", data, "post", false, "application/json");
  },
  getMyRead(data) {
    return utils_request.request("/user/case/read/search", data, "post", true, "application/json");
  },
  getOss(data) {
    return utils_request.request("/sign/oss", data, "get", false);
  },
  getCaseLabel(data) {
    return utils_request.request("/case/label", data, "get", false);
  },
  getSearchLabel(data) {
    return utils_request.request("/clinical/label/search", data, "post", true, "application/json");
  },
  addVote(id, data) {
    return utils_request.request("/exchange/vote/" + id, data, "post", true, "application/json");
  },
  ossUpload(url, data) {
    return utils_request.request(url, data, "post", "multipart/form-data");
  },
  getUserPoint(data) {
    return utils_request.request("/user/point", data, "get");
  },
  givePoint(data) {
    return utils_request.request("/reward", data, "post", true);
  },
  h5Login(data) {
    return utils_request.request("/login/hcp", data, "post");
  },
  readRecord(data) {
    return utils_request.request("/user/case/read", data, "post", false, "application/json");
  }
};
exports.api = api;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/api.js.map
