repo.js 452 B

123456789101112131415161718192021222324252627
  1. import request from '@/common/request.js'
  2. /**
  3. * 题库列表
  4. * @param {Object} data
  5. */
  6. export function repoPaging(data) {
  7. return request.post('/api/repo/user-paging', data);
  8. }
  9. /**
  10. * 题库详情
  11. * @param {Object} id
  12. */
  13. export function repoDetail(id) {
  14. return request.post('/api/repo/detail', {id: id});
  15. }
  16. /**
  17. * 查找最新的训练
  18. * @returns {*}
  19. */
  20. export function checkProcess() {
  21. return request.post('/api/repo/train/check', {})
  22. }