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.

68 lines
1.1 KiB

  1. import { http } from '../../utils/http'
  2. export const getData = () => {
  3. return http({
  4. method: 'GET',
  5. url: '/ka',
  6. })
  7. }
  8. /**
  9. * 意图识别
  10. * POST /api/deepMate/dmFirst
  11. * headers: token, content-type: application/json, contentType: application/json, version, client
  12. * body: { content, language, marketList }
  13. */
  14. export const postIntent = (data) => {
  15. return http({
  16. method: 'POST',
  17. url: '/api/deepMate/dmFirst',
  18. data
  19. })
  20. }
  21. /**
  22. * 获取股票信息
  23. * headers: token, content-type: application/json, contentType: application/json, version, client
  24. * body: { language, token, recordId, parentId, stockId }
  25. */
  26. export const postStock = (data) => {
  27. return http({
  28. method: 'POST',
  29. url: '/api/coze/decodingSecond',
  30. data
  31. })
  32. }
  33. /**
  34. * 获取历史记录
  35. */
  36. export const postHistory = (data) => {
  37. return http({
  38. method: 'POST',
  39. url: '/api/deepMate/dmList',
  40. data
  41. })
  42. }
  43. /**
  44. * 历史记录详情
  45. */
  46. export const postHistoryDetail = (data) => {
  47. return http({
  48. method: 'POST',
  49. url: '/api/deepMate/clickRecord',
  50. data
  51. })
  52. }