/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-06-21 13:55:42
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-06-28 11:35:29
 * @FilePath: \base-in-front-end-master1\src\api\stemApi.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import HttpKit from '@/utils/http-kit'

export default {
  /**
   * 功能描述：查询题干
   * @param form
   */
  page (form) {
    // TODO
    // return HttpKit.post(`http://112.74.105.17:20003/question-bank/api/stem/page`, form).then(
      return HttpKit.post(`http://127.0.0.1:20003/question-bank/api/stem/page`, form).then(
      res => res.data,
    ).catch(err=>{
      console.log(err);
    })
  },
  page1 (form) {
    // TODO http://127.0.0.1:8888
    // return HttpKit.post(`http://112.74.105.17:20003/question-bank/api/paper/page`, form).then(
      return HttpKit.post(`http://127.0.0.1:8888/question-bank/api/paper/page`, form).then(
      res => res.data,
    )
  },


}
