import { myRequest } from '../request.js' export default { goodsList(data) { return myRequest({ url: '/app/common/goods/list', method: 'get', data: data, noToken: true }) }, commonGoodsDetail(data) { return myRequest({ url: '/app/common/goods/'+ data, method: 'get', noToken: true }) }, goodsDetail(data) { return myRequest({ url: '/goods/'+ data, method: 'get' }) }, goodsCourseList(data) { return myRequest({ url: '/app/common/goods/course/list/'+ data, method: 'get', noToken: true }) }, collectQuestion(data) { return myRequest({ url: '/collect/question', data:data, method: 'POST' }) }, deleteCollectQuestion(data) { return myRequest({ url: '/collect/question/delete/'+data, method: 'POST', }) }, examRecord(data) { return myRequest({ url: '/exam/record', data:data, method: 'POST', }) }, examWrongRecord(data) { return myRequest({ url: '/exam/wwrong/record', data:data, method: 'POST', }) }, examRecordEdit(data) { return myRequest({ url: '/exam/record/edit', data:data, method: 'POST', }) }, examaperList(data) { return myRequest({ url: '/exam/paper/list', data:data, method: 'GET', }) }, examRecordList(data) { return myRequest({ url: '/exam/record/list', data:data, method: 'GET', }) }, collectQuestionTypeList(data) { return myRequest({ url: '/collect/question/type_list', data:data, method: 'GET', }) }, wrongRecordTypeQuestionList(data) { return myRequest({ url: '/exam/wwrong/record/type_question_list', data:data, method: 'GET', }) }, wrongRecordTypeList(data) { return myRequest({ url: '/exam/wwrong/record/type_list', data:data, method: 'GET', }) }, listGoodsUserQuestion(data) { return myRequest({ url: '/bank/question/listGoodsUserQuestion', data:data, method: 'get' }) }, getCollectInfo(data) { return myRequest({ url: '/collect/question/getInfo', data:data, method: 'get' }) }, goodsBankList(data) { return myRequest({ url: '/app/common/bank/list', method: 'get', data:data, noToken: true }) }, wrongRecordList(data) { return myRequest({ url: '/exam/wwrong/record/list', method: 'get', data:data }) }, goodsChapterList(data) { return myRequest({ url: '/app/common/bank/chapter/list', method: 'get', data:data, noToken: true }) }, wrongRecordExamQuestionList(data) { return myRequest({ url: '/exam/wwrong/record/exam_question_list', method: 'get', data:data, }) }, wrongRecordDelete(data) { return myRequest({ url: '/exam/wwrong/record/delete/question', method: 'post', data:data }) }, goodsCollectExamList(data) { return myRequest({ url: '/collect/question/exam_list', method: 'get', data:data }) }, goodsCollectList(data) { return myRequest({ url: '/collect/question/list', method: 'get', data:data }) }, goodsExamList(data) { return myRequest({ url: '/app/common/bank/exam/list', method: 'get', data:data, noToken: true }) }, goodsQuestionList(data) { return myRequest({ url: '/app/common/bank/question/list', method: 'get', data:data, noToken: true }) }, addCart(data) { return myRequest({ url: '/base/cart', method: 'post', data: data }) }, cartList(data) { return myRequest({ url: '/base/cart/list', method: 'get', data: data }) }, questionRecordList(data) { return myRequest({ url: '/bank/question/record/list', method: 'get', data: data }) }, deleteCart(data) { return myRequest({ url: '/base/cart/delete/'+data, method: 'post', data: data }) } }