1.用户登陆 用户登录验证接口
请求路径: /user/login
请求方式: POST
请求参数
| 参数名称 | 参数说明 | 备注 |
| userid | 用户id | 主键 |
| username | 用户名 | 不能为空 |
| password | 密码 | 不能为空 |
- 响应数据 SysResult对象
参数名称 参数说明 备注 status 状态信息 200表示服务器请求成功 201表示服务器异常 msg 服务器返回的提示信息 可以为null data 服务器返回的业务数据 返回密钥token信息 2.用户数据新增
-
请求路径 /user/addUser
-
请求类型 POST
-
请求参数: 整个form表单数据封装为js对象进行参数传递
参数名称 参数类型 参数说明 备注信息 userid Integer 用户id 主键 username String 用户名 不能为null password String 密码 不能为null phone String 电话号码 不能为null email String 密码 不能为null 返回值结果: SysResult对象
- 3.房产信息新增
- 请求路径/user/addAddr
- 请求类型 POST
- 请求参数: 整个form表单数据封装为js对象进行参数传递
参数名称 参数类型 参数说明 备注信息 id Integer 主键 houseid Integer 房产id 主键 username String 用户名 不能为null housename String 房屋名 不能为null addr String 房产地址 不能为null price Integer 房产价格 不能为null sellpoint String 卖点 可以为null image text 房屋图片 不能为null 返回值结果: SysResult对象
请求路径/quary/topic
请求类型 GET
| 参数名称 | 参数类型 | 参数说明 |
| id | Integer | 主键 |
| houseid | Integer | 房屋id |
| housename | String | 房屋名 |
| topic | String | 房屋动态 |
| update | datetime | 更新时间 |
请求路径/item/buy
请求类型 GET
| 参数名称 | 参数类型 | 参数说明 | 备注信息 |
| id | Integer | 编号 | 主键 |
| houseid | Integer | 房产id | |
| housename | String | 房产名 | |
| price | Integer | 房产价格 | |
| status | TinyInt | 支付状态 |
返回值结果: SysResult对象
6.设为关注请求路径/item/like
请求类型 PUT
| 参数名称 | 参数类型 | 参数说明 | 备注信息 |
| userid | Integer | 用户id | 主键 |
| houseid | Integer | 房产id | |
| housename | String | 房产名 | |
| likestatus | tinyint | 状态 | |
| update | datetime | 更新时间 |
请求路径/item/deletelike
请求类型delete
| 参数名称 | 参数类型 | 参数说明 |
| houseId | Integer | 房产id |
请求路径/file/upload
请求类型POST
| 参数名称 | 参数类型 | 参数说明 |
| file | 文件上传的参数名称 | file中携带的是二进制信息 |
返回值结果: SysResult对象
9.文件删除请求路径/file/deleteFile
请求类型delete
| 参数名称 | 参数类型 | 参数说明 |
| virtualPath | 文件上传的虚拟的路径 | 删除时需要磁盘路径一起删除 |
返回值结果: SysResult对象



