question.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //问答社区模块
  2. import { httpGet, httpPost } from "@/utils/request.js";
  3. /**
  4. * 问答列表
  5. * @param chart_permission_id
  6. * @param reply_status 0-全部 2-待回答 3-已回答
  7. */
  8. export const apiQuestionList=params=>{
  9. return httpGet('/community/question/list',params)
  10. }
  11. /**
  12. * FICC品种权限
  13. */
  14. export const apiOptionList=params=>{
  15. return httpGet('/company/permission/tree',params)
  16. }
  17. /**
  18. * 发布提问
  19. * @param question_content
  20. */
  21. export const apiPubAsk=params=>{
  22. return httpPost('/community/question/ask',params)
  23. }
  24. /**
  25. * 问答列表数量统计
  26. */
  27. export const apiBarTotal=params=>{
  28. return httpGet('/community/question/list/total',params)
  29. }
  30. /**
  31. * 发布回答
  32. * @param question_id
  33. * @param audio_list
  34. */
  35. export const apiReplayAsk=params=>{
  36. return httpPost('/community/question/reply',params)
  37. }
  38. /**
  39. * 问答详情
  40. * @param question_id
  41. */
  42. export const apiGetQuestion=params=>{
  43. return httpGet('/community/question/detail',params)
  44. }
  45. /**
  46. * 我的-未读数
  47. */
  48. export const apiGetUnread=params=>{
  49. return httpGet('/community/question/unread',params)
  50. }
  51. /**
  52. * 问答已读(批量)
  53. * @param question_ids
  54. */
  55. export const apiSetRead = params=>{
  56. return httpPost('/community/question/reply/read',params)
  57. }