1.任务量:10天
目前已经花费的时间:7天
还剩余的时间:3天
3.
4.调试vue和springboot的接口,对接好。
import requests from "./request"; import mockRequest from './mockRequest'; //注册的接口/user/ export const reqRegister = (data)=>requests({url:'/user/',method:'post',data}); //登录的接口:请求体携带参数 phone&&password /user/ export const reqUserLogin = (data)=>requests({url:'/user/',method:'get',data}); //获取用户登录成功以后用户信息的接口 export const reqUserInfo = ()=>requests({url:'/user/passport/auth/getUserInfo',method:'get'}); //退出登录业务11 export const reqUserLogout = ()=>requests({url:'/user/passport/logout',method:'get'}); //删除某一个用户的接口/user/:id: export const reqDeleteUser = (id)=>requests({url:`/user/${id}`,method:'delete'}); //修改某一个用户的接口/user/ export const reqUpUser = (data)=>requests({url:'/user/',method:'put',data}); //搜索模块的请求接口函数: export const reqSearchList = (data)=>requests({url:'/item/findByTitle',method:'get',data}) //上传文件的请求接口函数: export const reqUpload = (data)=>requests({url:'/item/saveBatch',method:'post',headers: { 'Content-Type': 'multipart/form-data' } ,data}) //export const reqBook = ()=>requests({url:`/user/`,method:'get'}); //高级搜索模块的请求接口函数: export const reqHighSearchList = (data)=>requests({url:'/item/advancedSearch',method:'post',data}) //查看PDF export const reqPDF = (data)=>requests({url:'/view',method:'get',data}) //查看历史记录 export const reqHistory = (userId , data)=>requests({url:`/bro/${userId}`,method:'get',data}) //删除历史记录 export const reqDeleteHistory = (userId, data)=>requests({url:`/bro/${userId}`,method:'delete', data}) //增加历史记录 export const reqAddHistory = (data)=>requests({url:'/bro/',method:'post', data}) //获取首页轮播图数据的接口 export const reqMockBook = () => mockRequest({ url: '/book', method: 'get' }); //注册的接口 export const reqMockRegister = (data)=>mockRequest({url:`/user`,method:'post',data}); //登录的接口:请求体携带参数 phone&&password /user/ export const reqMockLogin = (data)=>mockRequest({url:'/user',method:'get',data}); //退出登录业务11 export const reqMockUserLogout = ()=> mockRequest({ url: '/book', method: 'get' });
标签:const,url,冲刺,export,requests,团队,data,method From: https://www.cnblogs.com/teamno12/p/17344355.html