purchaser.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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, 1);
  21. },
  22. // 专栏列表
  23. yanxuanSpecialList: (params) => {
  24. return getHttp("/yanxuan_special/list", params, 1);
  25. },
  26. // 研选专栏作者详情
  27. yanxuanSpecialAuthorDetail: (params) => {
  28. return getHttp("/yanxuan_special/author/detail", params, 1);
  29. },
  30. // 研选专栏详情
  31. yanxuanSpecialDetail: (params) => {
  32. return getHttp("/yanxuan_special/detail", params, 1);
  33. },
  34. // 研选专栏作者详情
  35. yanxuanSpecialAuthorSave: (params) => {
  36. return postHttp("/yanxuan_special/author/save", params, 1);
  37. },
  38. // 行业搜索
  39. yanxuanSpecialIndustrySearch: (params) => {
  40. return getHttp("/yanxuan_special/industrySearch", params, 1);
  41. },
  42. // 公司搜索
  43. yanxuanSpecialCompanySearch: (params) => {
  44. return getHttp("/yanxuan_special/companySearch", params, 1);
  45. },
  46. // 专栏保存
  47. yanxuanSpecialSave: (params) => {
  48. return postHttp("/yanxuan_special/save", params, 1);
  49. },
  50. // 专栏内容中心
  51. yanxuanSpecialCenter: (params) => {
  52. return getHttp("/yanxuan_special/center", params, 1);
  53. },
  54. // 取消发布
  55. yanxuanSpecialCancel: (params) => {
  56. return postHttp("/yanxuan_special/cancel", params, 1);
  57. },
  58. // 审批研选专栏
  59. yanxuanSpecialEnable: (params) => {
  60. return postHttp("/yanxuan_special/enable", params, 1);
  61. },
  62. // 作者列表
  63. yanxuanSpecialAuthorList: (params) => {
  64. return getHttp("/yanxuan_special/author/list", params, 1);
  65. },
  66. // 专栏收藏
  67. yanxuanSpecialCollect: (params) => {
  68. return postHttp("/yanxuan_special/collect", params, 1);
  69. },
  70. // 专栏收藏
  71. yanxuanSpecialAuthorImg: (params) => {
  72. return postHttp("/yanxuan_special/author/head_img", params, 1);
  73. },
  74. // 删除文章
  75. yanxuanSpecialDel: (params) => {
  76. return postHttp("/yanxuan_special/del", params, 1);
  77. },
  78. // 作者关注
  79. yanxuanSpecialFollow: (params) => {
  80. return postHttp("/yanxuan_special/follow", params, 1);
  81. },
  82. // 专栏文章敏感词检测
  83. yanxuanSpecialCheck: (params) => {
  84. return postHttp("/yanxuan_special/check", params);
  85. },
  86. };