fastGptKeywordSend.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询Ai指令关键字列表
  3. export function keywordList(query) {
  4. return request({
  5. url: '/fastGpt/fastGptKeywordSend/keywordList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询Ai指令列表
  11. export function listFastGptKeywordSend(query) {
  12. return request({
  13. url: '/fastGpt/fastGptKeywordSend/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询Ai指令详细
  19. export function getFastGptKeywordSend(id) {
  20. return request({
  21. url: '/fastGpt/fastGptKeywordSend/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 新增Ai指令
  26. export function addFastGptKeywordSend(data) {
  27. return request({
  28. url: '/fastGpt/fastGptKeywordSend',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改Ai指令
  34. export function updateFastGptKeywordSend(data) {
  35. return request({
  36. url: '/fastGpt/fastGptKeywordSend',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除Ai指令
  42. export function delFastGptKeywordSend(id) {
  43. return request({
  44. url: '/fastGpt/fastGptKeywordSend/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出Ai指令
  49. export function exportFastGptKeywordSend(query) {
  50. return request({
  51. url: '/fastGpt/fastGptKeywordSend/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }