<commit_before>import fetch from 'utils/fetch';

export function fetchList() {
  return fetch({
    url: '/reading/coursemanager/getbooklist',
    method: 'post'
  });
}

export function fetchChapterList(id) {
  const data = {
    id
  };
  return fetch({
    url: '/reading/coursemanager/getchapterlist',
    method: 'post',
    data
  })
}

export function CreateChapter(bookId, indexId, title, cover, content) {
  const data = {
    bookId,
    indexId,
    title,
    cover,
    content
  };
  return fetch({
    url: '/reading/coursemanager/createchapter',
    method: 'post',
    data
  })
}<commit_msg>修复书本目录列表显示<commit_after>import fetch from 'utils/fetch';

export function fetchList() {
  return fetch({
    url: '/reading/coursemanager/getbooklist',
    method: 'post'
  });
}

export function fetchChapterList(bookId) {
  const data = {
    bookId
  };
  return fetch({
    url: '/reading/coursemanager/getchapterlist',
    method: 'post',
    data
  })
}

export function CreateChapter(bookId, indexId, title, cover, content) {
  const data = {
    bookId,
    indexId,
    title,
    cover,
    content
  };
  return fetch({
    url: '/reading/coursemanager/createchapter',
    method: 'post',
    data
  })
}
{'fraction_non_alphanumeric': 0.13082583810302534, 'fraction_numerical': 0.0, 'mean_word_length': 3.0664451827242525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5798047', 'n_tokens_mistral': 416, 'n_tokens_neox': 405, 'n_words': 94}