You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.2 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. import { http } from '@/utils/http.js'
  2. const baseURL = "http://39.101.133.168:8828"
  3. //图片上传
  4. export const uploadImageApi = (data) => {
  5. return http({
  6. method: 'POST',
  7. url: baseURL +'/hljw/api/aws/upload',
  8. data
  9. })
  10. }
  11. //问题回答最终内容
  12. export const getAnswerContentApi = (data) => {
  13. return http({
  14. method: 'POST',
  15. url: '/api/customer/getAnswer',
  16. data
  17. })
  18. }
  19. //问题回答轮询
  20. export const getAnswerStatusApi = (data) => {
  21. return http({
  22. method: 'POST',
  23. url: '/api/customer/getState',
  24. data
  25. })
  26. }
  27. //问题回答获取Id
  28. export const getAnswerIdApi = (data) => {
  29. return http({
  30. method: 'POST',
  31. url: '/api/customer/askQuestion',
  32. data
  33. })
  34. }
  35. //获取随机5条猜你想问问题
  36. export const getQuestionApi = (data) => {
  37. return http({
  38. method: 'GET',
  39. url: '/api/customer/getQuestion',
  40. })
  41. }
  42. //反馈添加
  43. export const addFeedbackRecordApi = (data) => {
  44. return http({
  45. method: 'POST',
  46. url: baseURL +'/link/third/dcFeedBack/feedback/add',
  47. data
  48. })
  49. }
  50. //反馈历史记录
  51. export const getFeedbackRecordsApi = (data) => {
  52. return http({
  53. method: 'POST',
  54. url: baseURL+'/link/third/dcFeedBack/feedback/select',
  55. data
  56. })
  57. }