团队第二阶段冲刺08
一、前言
1、昨天完成了:
文献阅读和笔记功能:为用户提供文献阅读和笔记功能,方便用户进行学习和研究。
2、今天完成了:
手机移动端应用开发:开发支持移动端的应用程序,方便用户随时随地进行文献检索和学习。
3、遇到的困难:
手机移动端应用开发还不够完善,还需要继续改进
二、冲刺进度
-
1.任务量:10天
目前已经花费的时间:8天
还剩余的时间:2天
三、逻辑代码
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' });