后台管理部分
【用户】
写死管理员账号,不对外开放
【功能】
这里我不太清楚,后台需要具备哪些基本功能?
- 查看用户信息
- 管理用户账号
前端/安卓端部分
目前第一版只实现:【用户登录】 和 【收藏】
【用户登录】
方案一
类似 easy-mock 这样的登陆系统:
-
第一次直接输入账号密码即注册登录(疑问:如何防止恶意注册的?),所有用户权限相同,无管理员(在后台中管理)。
-
只提供最基本的个人资料修改,如昵称、密码修改、上传头像

-
不提供密码找回功能
方案二:
使用第三方登陆(下图中提到不需要密码?这里具体怎么实现?需要我做什么工作?)

关于github第三方登录的参考文档
https://github.com/Selvin11/koa2-login
https://www.jianshu.com/p/a9c0b277a3b3


收藏功能
一个用户id可以储存一个收藏列表
-
收藏列表的增加和删除功能
-
列表中的每一个谱子需要包含如下信息:
- title
- url
- label

数据库设计

几种业务场景
- github第三方登陆,拿到uid、用户名、头像url

网友评论