distillation.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from "@/utils/request";
  2. // 查询知识蒸馏列表
  3. export function listDistillation(query) {
  4. return request({
  5. url: "/biz/distillation/list",
  6. method: "get",
  7. params: query,
  8. });
  9. }
  10. // 查询知识蒸馏详细
  11. export function getDistillation(id) {
  12. return request({
  13. url: "/biz/distillation/" + id,
  14. method: "get",
  15. });
  16. }
  17. // 新增知识蒸馏
  18. export function addDistillation(data) {
  19. return request({
  20. url: "/biz/distillation",
  21. method: "post",
  22. data: data,
  23. });
  24. }
  25. // 修改知识蒸馏
  26. export function updateDistillation(data) {
  27. return request({
  28. url: "/biz/distillation",
  29. method: "put",
  30. data: data,
  31. });
  32. }
  33. // 删除知识蒸馏
  34. export function delDistillation(id) {
  35. return request({
  36. url: "/biz/distillation/" + id,
  37. method: "delete",
  38. });
  39. }
  40. // 运行知识蒸馏
  41. export function run(id) {
  42. return request({
  43. url: "/biz/distillation/run/" + id,
  44. method: "get",
  45. });
  46. }
  47. // 获取运行结果详情
  48. export function getResultDetails(id) {
  49. return request({
  50. url: "/biz/distillation/getResultDetails/" + id,
  51. method: "get",
  52. });
  53. }
  54. // 获取运行结果详情
  55. export function getTaskStatusIsChanged(id) {
  56. return request({
  57. url: "/biz/distillation/getTaskStatusIsChanged/" + id,
  58. method: "get",
  59. });
  60. }