purchaser.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { getHttp, postHttp } from "../request.js";
  2. /* 研选 */
  3. export const purchaserApi = {
  4. /* 获取研选banner列表*/
  5. getPurchaserBanner: () => {
  6. return getHttp("/banner/listYx");
  7. },
  8. /**
  9. * 调研提交
  10. * params:{string Content:Content}
  11. */
  12. purchaserSurveySubmit: (params) => {
  13. return postHttp("/banner/add/yxSurvey", params);
  14. },
  15. /**
  16. * 调研详情
  17. * params:{number SuveryId:SuveryId}
  18. */
  19. purchaserSurveyDetail: (params) => {
  20. return getHttp("/banner/yxSurvey/detail", params);
  21. },
  22. /**
  23. * 详情
  24. * params:{number SuveryId:SuveryId}
  25. */
  26. questionnaireDetail: (params) => {
  27. return getHttp("/questionnaire/detail", params);
  28. },
  29. /**
  30. * 提交问卷信息
  31. * params:{number SuveryId:SuveryId}
  32. */
  33. questionnaireVote_add: (params) => {
  34. return postHttp("/questionnaire/vote_add", params);
  35. },
  36. // 专栏列表
  37. yanxuanSpecialList: (params) => {
  38. return getHttp("/yanxuan_special/list", params, 1);
  39. },
  40. // 研选专栏作者详情
  41. yanxuanSpecialAuthorDetail: (params) => {
  42. return getHttp("/yanxuan_special/author/detail", params, 1);
  43. },
  44. // 研选专栏详情
  45. yanxuanSpecialDetail: (params) => {
  46. return getHttp("/yanxuan_special/detail", params, 1);
  47. },
  48. // 研选专栏作者详情
  49. yanxuanSpecialAuthorSave: (params) => {
  50. return postHttp("/yanxuan_special/author/save", params, 1);
  51. },
  52. // 行业搜索
  53. yanxuanSpecialIndustrySearch: (params) => {
  54. return getHttp("/yanxuan_special/industrySearch", params, 1);
  55. },
  56. // 公司搜索
  57. yanxuanSpecialCompanySearch: (params) => {
  58. return getHttp("/yanxuan_special/companySearch", params, 1);
  59. },
  60. // 专栏保存
  61. yanxuanSpecialSave: (params) => {
  62. return postHttp("/yanxuan_special/save", params, 1);
  63. },
  64. // 专栏内容中心
  65. yanxuanSpecialCenter: (params) => {
  66. return getHttp("/yanxuan_special/center", params, 1);
  67. },
  68. // 取消发布
  69. yanxuanSpecialCancel: (params) => {
  70. return postHttp("/yanxuan_special/cancel", params, 1);
  71. },
  72. // 审批研选专栏
  73. yanxuanSpecialEnable: (params) => {
  74. return postHttp("/yanxuan_special/enable", params, 1);
  75. },
  76. // 作者列表
  77. yanxuanSpecialAuthorList: (params) => {
  78. return getHttp("/yanxuan_special/author/list", params, 1);
  79. },
  80. // 专栏收藏
  81. yanxuanSpecialCollect: (params) => {
  82. return postHttp("/yanxuan_special/collect", params, 1);
  83. },
  84. // 专栏收藏
  85. yanxuanSpecialAuthorImg: (params) => {
  86. return postHttp("/yanxuan_special/author/head_img", params, 1);
  87. },
  88. // 删除文章
  89. yanxuanSpecialDel: (params) => {
  90. return postHttp("/yanxuan_special/del", params, 1);
  91. },
  92. // 作者关注
  93. yanxuanSpecialFollow: (params) => {
  94. return postHttp("/yanxuan_special/follow", params, 1);
  95. },
  96. // 专栏文章敏感词检测
  97. yanxuanSpecialCheck: (params) => {
  98. return postHttp("/yanxuan_special/check", params);
  99. },
  100. // 活动类型列表
  101. getActivityTypelist: (params) => {
  102. return getHttp("/activity/activityTypelist", params);
  103. },
  104. // 专栏点击记录记录阅读时长
  105. YanxuanSpecialRecord: (params) => {
  106. return postHttp("/yanxuan_special/record", params);
  107. },
  108. };