用自己原创的语句详细说一下基于SpringBoot,TypeScript,Vue3健身房管理系统的输入输出格式设计,要求必须写出具体哪些内容输入,哪些输出
时间: 2024-05-31 13:13:44 浏览: 14
基于SpringBoot, TypeScript, Vue3的健身房管理系统的输入输出格式设计如下:
输入格式设计:
1. 用户登录输入格式
请求方式:POST
请求URL:/api/user/login
请求参数:
| 参数名 | 类型 | 是否必选 | 说明 |
| -------- | ------ | -------- | -------- |
| username | string | 是 | 用户名 |
| password | string | 是 | 用户密码 |
2. 用户注册输入格式
请求方式:POST
请求URL:/api/user/register
请求参数:
| 参数名 | 类型 | 是否必选 | 说明 |
| -------- | ------ | -------- | -------- |
| username | string | 是 | 用户名 |
| password | string | 是 | 用户密码 |
| phone | string | 是 | 手机号码 |
| email | string | 是 | 邮箱地址 |
3. 添加健身房设备输入格式
请求方式:POST
请求URL:/api/gym/equipment/add
请求参数:
| 参数名 | 类型 | 是否必选 | 说明 |
| -------------- | ------- | -------- | ---------------- |
| name | string | 是 | 设备名称 |
| type | string | 是 | 设备类型 |
| price | number | 是 | 设备价格 |
| inventory | number | 是 | 设备库存 |
| purchase_date | string | 是 | 设备购买日期 |
| manufacturer | string | 是 | 设备生产厂家 |
| instruction | string | 是 | 设备使用说明书 |
| maintenance | string | 是 | 设备维护保养说明 |
| warranty | string | 是 | 设备保修说明 |
| picture_url | string | 是 | 设备图片URL |
| supplier_phone | string | 是 | 设备供应商电话 |
4. 添加健身房会员输入格式
请求方式:POST
请求URL:/api/gym/member/add
请求参数:
| 参数名 | 类型 | 是否必选 | 说明 |
| ------------ | ------ | -------- | ------------ |
| name | string | 是 | 会员姓名 |
| age | number | 是 | 会员年龄 |
| sex | string | 是 | 会员性别 |
| phone | string | 是 | 会员电话 |
| email | string | 是 | 会员邮箱 |
| registerDate | string | 是 | 会员注册日期 |
| remarks | string | 是 | 备注信息 |
5. 添加健身房教练输入格式
请求方式:POST
请求URL:/api/gym/coach/add
请求参数:
| 参数名 | 类型 | 是否必选 | 说明 |
| ------------ | ------ | -------- | ------------ |
| name | string | 是 | 教练姓名 |
| age | number | 是 | 教练年龄 |
| sex | string | 是 | 教练性别 |
| phone | string | 是 | 教练电话 |
| email | string | 是 | 教练邮箱 |
| hireDate | string | 是 | 教练入职日期 |
| salary | number | 是 | 教练薪资 |
| introduction | string | 是 | 教练简介 |
输出格式设计:
1. 用户登录成功输出格式
返回数据:
| 参数名 | 类型 | 说明 |
| --------- | ------ | -------- |
| token | string | 用户令牌 |
| username | string | 用户名 |
| avatarUrl | string | 用户头像 |
2. 用户注册成功输出格式
返回数据:
| 参数名 | 类型 | 说明 |
| -------- | ------ | -------- |
| username | string | 用户名 |
| phone | string | 手机号码 |
| email | string | 邮箱地址 |
3. 添加健身房设备成功输出格式
返回数据:
| 参数名 | 类型 | 说明 |
| ------ | ------ | -------- |
| name | string | 设备名称 |
| type | string | 设备类型 |
| price | number | 设备价格 |
4. 添加健身房会员成功输出格式
返回数据:
| 参数名 | 类型 | 说明 |
| ------ | ------ | -------- |
| name | string | 会员姓名 |
| age | number | 会员年龄 |
5. 添加健身房教练成功输出格式
返回数据:
| 参数名 | 类型 | 说明 |
| ------ | ------ | -------- |
| name | string | 教练姓名 |
| age | number | 教练年龄 |
| salary | number | 教练薪资 |
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)