# 项目实战server **Repository Path**: jason-hsl/project-practice-server ## Basic Information - **Project Name**: 项目实战server - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-05 - **Last Updated**: 2023-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 接口文档 ``` 默认没有账号密码 一开始先注册管理账号 phone:13700000000 password:111111 端口号默认5000 登录后,会返回一个uid,将uid存储到本地,除首页以外,没有uid均不可访问 ``` ## 注册 POST ``` http://localhost:5000/register ``` ``` phone 必填 password 必填 ``` ## 登录 POST ``` http://localhost:5000/login ``` ``` phone 必填 password 必填 ``` ## 我的订单 GET ``` http://localhost:5000/myOrder ``` ## 猜你喜欢 GET ``` http://localhost:5000/youLike ``` ## 猫眼电影 GET ``` http://localhost:5000/film ``` ## 即将上映 GET ``` http://localhost:5000/comingSoon ``` ## 获取推荐民宿城市列表 GET ``` http://localhost:5000/getCityList ``` ## 根据城市 id 获取民宿详细 GET ``` http://localhost:5000/getHotelList ``` ``` id 必填 ``` ## 获取商品列表 GET ``` http://localhost:5000/goodsList ``` ## 获取城市列表 GET ``` http://localhost:5000/cityList ``` ## 获取菜品列表 GET ``` http://localhost:5000/foodList ``` ## 获取用户信息 GET ``` http://localhost:5000/userInfo ``` ## 商品详情页: ## 获取商品的评论:GET eg:https://i.meituan.com/xiuxianyule/api/getCommentList?poiId=96256935&offset=0&pageSize=10 参数:poiId:商品 ID; offset:评论的第几条开始 pageSize:获取多少条评论 ## 通过美团服务器返回附近商家 GET eg: https://i.meituan.com/xiuxianyule/api/getNearPoiList?poiId=96256935&start=0&limit=10 参数:poiId:商品 ID; start=Number limit=Number ## 通过美团服务器返回猜你喜欢 GET eg: https://i.meituan.com/xiuxianyule/api/getRecommendList?poiId=96256935 参数:poiId:商品 ID; ## 搜索 GET ``` http://localhost:5000/search ``` ``` keyword 必填 ```