const { http } = require('../utils/util') const API = { createCommentURL: '/appraise/create', //放接口URL } //查询列表时传参---注意参数数据类型 function createCommont(data) { //Promise return http( API.createCommentURL, { method: 'POST', data: data } ); } /** * @param: {pageNum, pageSize} */ //传对象给params function getCommentList(params) { return http( API.createCommentURL, { method: 'GET', params: params,//是传入的形参 } ); } // //超时设置:timeout: 1000 * 60 * 30 // function deleteComment() { // } module.exports = { createCommont, getCommentList }