当前位置:网站首页>【无标题】
【无标题】
2022-07-23 05:38:00 【დ᭄ꦿ阿楊꧔ꦿ℘⸙451】
第三单元
1.用户名校验
1.在表单中输入用户名
2.前端校验用户名是否符合规则,比如:以字母开头,最少6位
3.将合法的用户名发送给后端,判断是否存在,返回响应
4.前端根据响应展示结果
API设计
| 功能 | 判断用户名是否重复 |
|---|---|
| 请求方式 | GET |
| 请求地址 | /users/check/username/用户名/ |
| 请求成功 | {“code”: 200, ‘msg’: ‘OK’} |
| 请求失败 | {“code”:404, ‘msg’:“用户名格式不正确”} {“code”: 400, ‘msg’: ‘用户名重复’} |
2.手机号重复性校验
API设计
| 功能 | 判断手机号是否重复 |
|---|---|
| 请求方式 | GET |
| 请求地址 | /users/check/mobile/手机号/ |
| 请求成功 | {“code”:200, ‘msg’: ‘OK’} |
| 请求失败 | {“code”:400, ‘msg’: ‘手机号重复’} {“code”:404, ‘msg’:“手机号格式不正确”} |
边栏推荐
- 8、曲面几何
- DWI图像 从DICOM Tag识别 b value 的方法
- 【pyradiomics】bugFix:GLCM特征时:IndexError: arrays used as indices must be of integer (or boolean) type
- 比特,比特,字節,字的概念與區別
- Anr error encountered
- 項目部署(簡版)
- A usage exploration of entitymanagerfactory and entitymanager
- mysql invalid conn排查
- Cadence (IX) 17.4 rules and spacing settings
- 人脸识别神经网络实现
猜你喜欢

C language n battle -- linked list (IX)

达人专栏 | 还不会用 Apache Dolphinscheduler?大佬用时一个月写出的最全入门教程

Markdown常用语法记录

Single sign on - how to unify the expiration time of session between authentication server and client

Murata power maintenance switch server power maintenance and main functional features

Alibaba cloud object storage service OSS front and rear joint debugging

Briefly describe the features and application scenarios of redis

sprintboot中使用缓存时候,数据加载不出来

Epidemic period plus midlife crisis - three months wandering at the crossroads

Filter in MATLAB
随机推荐
Project deployment (simplified version)
字典创建与复制
主从同步步骤读写分离+自遇错误分享
Flask源码剖析(一)请求入口
Markdown常用语法记录
对比redis的RDB、AOF模式的优缺点
Compare the advantages and disadvantages of RDB and AOF modes of redis
3DMAX first skin brush weights, then attach merge
Detailed explanation of structure
【系统问题】.NET Framework 3.5 安装错误
Data Lake: introduction to Apache iceberg
adb常用命令
Filter in MATLAB
Fundamentals of software testing - design method of test cases
联合主键和索引
安装企业版pycharm以及anaconda
Alibaba cloud object storage service OSS front and rear joint debugging
Mysql-8.0.28 user operation or user permission Operation
[information system project manager] Chapter VI recheck schedule management knowledge structure
简述redis特点及其应用场景