Dubbo 分布式架构搭建教育 PC 站:视频讲解
视频讲解BiliBili 链接教育PC站-Dubbo分布式架构:后端教育PC站-Vue:前端说明服务提供方:http://localhost:8002/服务消费方:http://localhost:80/前端:http://localhost:8080/图片服务器地址:http://www.fdfsstorage.com/ZooKeeper、MySQL、FastDFS、Redis、Nginx 等
视频讲解
教育PC站-Dubbo分布式架构:后端
教育PC站-Vue:前端
说明
服务提供方:http://localhost:8002/
服务消费方:http://localhost:80/
前端:http://localhost:8080/
图片服务器地址:http://www.fdfsstorage.com/
ZooKeeper、MySQL、FastDFS、Redis、Nginx 等都配置在 Linux 系统
需求
完成接口对应的前后端的代码
个人资料基本修改


-
图片上传到
FastDFS服务器,保存fileid为图片路径 -
头像和昵称都在 user 表
接口文档
-
名称:
updateUserInfo -
描述: 更新用户头像与昵称
-
URL: http://localhost:80/user/updateUserInfo
-
请求方式: POST
-
请求参数
{
// 用户 id
"userid": "100030018",
"portrait": "头像新地址",
"name": "新昵称"
}
-
响应参数示例
{
"success": true,
"state": 200,
"message": "修改成功",
}
修改密码

-
获取当前用户的密码与新密码进行匹配
-
新密码和确认密码进行验证相等
-
以上两步的验证需在 Vue 前端项目中完成
接口文档
-
名称:
updatePassword -
描述: 修改密码
-
URL: http://localhost:80/user/updatePassword
-
请求方式: POST
-
请求参数
{
// 用户 id
"userid": "100030018",
"password": "验证通过的新密码"
}
-
响应参数示例
{
"success": true,
"state": 200,
"message": "修改成功",
}
想了解更多,欢迎关注我的微信公众号:Renda_Zhang
更多推荐
所有评论(0)