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

index.js 2.0 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * @Author: 赵伟
  3. * @Date: 2024-11-18 10:18:27
  4. * @Description: 主动学习
  5. */
  6. import { request } from '@umijs/max';
  7. // 分页查询超参数自动寻优
  8. export function getActiveLearnListReq(params) {
  9. return request(`/api/mmp/activeLearn`, {
  10. method: 'GET',
  11. params,
  12. });
  13. }
  14. // 查询超参数自动寻优详情
  15. export function getActiveLearnInfoReq(params) {
  16. return request(`/api/mmp/activeLearn/getActiveLearnDetail`, {
  17. method: 'GET',
  18. params,
  19. });
  20. }
  21. // 新增超参数自动寻优
  22. export function addActiveLearnReq(data) {
  23. return request(`/api/mmp/activeLearn`, {
  24. method: 'POST',
  25. data,
  26. });
  27. }
  28. // 编辑超参数自动寻优
  29. export function updateActiveLearnReq(data) {
  30. return request(`/api/mmp/activeLearn`, {
  31. method: 'PUT',
  32. data,
  33. });
  34. }
  35. // 删除超参数自动寻优
  36. export function deleteActiveLearnReq(id) {
  37. return request(`/api/mmp/activeLearn/${id}`, {
  38. method: 'DELETE',
  39. });
  40. }
  41. // 运行超参数自动寻优
  42. export function runActiveLearnReq(id) {
  43. return request(`/api/mmp/activeLearn/run/${id}`, {
  44. method: 'POST',
  45. });
  46. }
  47. // ----------------------- 实验实例 -----------------------
  48. // 获取实验实例列表
  49. export function getActiveLearnInsListReq(params) {
  50. return request(`/api/mmp/activeLearnIns`, {
  51. method: 'GET',
  52. params,
  53. });
  54. }
  55. // 查询实验实例详情
  56. export function getActiveLearnInsReq(id) {
  57. return request(`/api/mmp/activeLearnIns/${id}`, {
  58. method: 'GET',
  59. });
  60. }
  61. // 停止实验实例
  62. export function stopActiveLearnInsReq(id) {
  63. return request(`/api/mmp/activeLearnIns/${id}`, {
  64. method: 'PUT',
  65. });
  66. }
  67. // 删除实验实例
  68. export function deleteActiveLearnInsReq(id) {
  69. return request(`/api/mmp/activeLearnIns/${id}`, {
  70. method: 'DELETE',
  71. });
  72. }
  73. // 批量删除实验实例
  74. export function batchDeleteActiveLearnInsReq(data) {
  75. return request(`/api/mmp/activeLearnIns/batchDelete`, {
  76. method: 'DELETE',
  77. data,
  78. });
  79. }