vcb-s / vcb_member Goto Github PK
View Code? Open in Web Editor NEWvcb_member
vcb_member
功能描述:
功能描述:
拥有组长权限的账号,可以选择给给自己管理的某个组创建邀请链接
1.1. 链接必须指定邀请上限及失效日期,上限避免滥用,要求指定失效可减少误用
1.2. 失效日期指定时需注意验证适配时区问题
1.3. 人员列表新增邀请链接记录
邀请链接可提前手动失效
控制台新增
设计:
邀请链接为固定长度随机值
1.1. 考虑到碰撞问题,随机值采用时间戳+随机字符机制,base64 url-safe变种编码(故大小写敏感)
登录页面新增注册入口,点击跳转注册页面
注册页面可手动填写邀请码;邀请码链接则自动跳转注册页面并自动填写邀请码
【新用户场景】注册
4.1. 用户名、登陆密码、邀请码为必填字段
4.2. 接口校验邀请码有效(未失效、未达到上限、未超过有效期),根据邀请码来源自动归属用户组别
【转户口场景】注册
5.1. uid(下拉人员列表)、邀请码为必填字段
5.2. (?)根据登录态自动选出自己
5.3. 接口校验邀请码有效(未失效、未达到上限、未超过有效期),根据邀请码来源自动归属用户组别
控制台根据用户权限,展示邀请码管理按钮
6.1. 邀请码放在弹层内,弹层内左上角为新建邀请码,中部为邀请码表格,展示邀请码细节,按照创建时间倒序排列
6.2. 列包含:邀请码内容、邀请码关联组别、已邀请/总数、失效状态、创建时间、预计失效时间、操作列
6.3. 操作列包含:立即失效按钮(如未失效)、复制链接按钮(失效则置灰)
6.4. 新建邀请码按钮点击后出现弹层,弹层中下拉选择组别(自己管理的组别内选择),点击确认后,刷新table,展示最新的邀请码链接
数据结构
7.1. ID、值、关联组别ID、有效状态、人数上限、已使用次数、预计失效时间、创建时间
7.2. 用户表新增邀请链接关联记录
不考虑邀请码删除(关联问题)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.