index.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import {
  2. httpGet,
  3. httpPost
  4. } from "@/utils/request.js"
  5. /**
  6. * 问答列表
  7. * @param {*} params
  8. * ReplyStatus 提问状态 1-待分配 2-待回答 3-已回答
  9. * CommunityQuestionId
  10. * Keyword
  11. * CurrentIndex
  12. * PageSize
  13. */
  14. export const apiQuestionList = params => {
  15. return httpGet('/yb/community/question/list',params)
  16. }
  17. /**
  18. * 待分配的研究员的列表
  19. * @param {*} params IncludeDisableMember 0
  20. */
  21. export const apiRsList = () => {
  22. return httpGet('/taglib/variety_tag/tag_tree',{IncludeDisableMember: 0})
  23. }
  24. /**
  25. * 修改问答内容
  26. * QuestionId QuestionContent
  27. */
  28. export const apiEditQuestion = params => {
  29. return httpPost('/yb/community/question/edit',params)
  30. }
  31. /**
  32. * 删除问答 QuestionId
  33. */
  34. export const apiDelQuestion = params => {
  35. return httpPost('/yb/community/question/delete',params)
  36. }
  37. /**
  38. * 分配
  39. * "QuestionId": 54, //问答id
  40. "AdminId": 450, //研究员id
  41. "ResearchGroupFirstId": 3, //一级分组id
  42. "ResearchGroupSecondId": 41 //二级分组id
  43. */
  44. export const apiDistribute = params => {
  45. return httpPost('/yb/community/question/distribute',params)
  46. }
  47. /**
  48. * 设置精选
  49. * @param {*} params CommunityQuestionCommentId
  50. */
  51. export const apiSetHotComment = params => {
  52. return httpPost('/yb/community/question/comment/hot',params)
  53. }
  54. /**
  55. * 删除评论
  56. * @param {*} params CommunityQuestionCommentId
  57. */
  58. export const apiDelComment = params => {
  59. return httpPost('/yb/community/question/comment/delete',params)
  60. }
  61. /**
  62. * 评论列表
  63. * @param {*} params
  64. * CommunityQuestionCommentId
  65. * Keyword
  66. * HotStatus 精选状态 -1:全部 0-未精选,1-已精选
  67. * CurrentIndex
  68. * PageSize
  69. * 来源(CommunityQuestionCommentId>0也需要传):1-问答社区; 2-视频社区
  70. */
  71. export const apiCommentList = params => {
  72. return httpGet('/yb/community/question/comment/list',params)
  73. }