Commit 1941a983 authored by 阎佳明's avatar 阎佳明

11

parent 0924dbc4
......@@ -70,7 +70,7 @@ public class HomeController {
}
//添加房屋信息
@PostMapping("/addHome")
public Result<Home> addHomeById(@RequestHeader("X-Token")String token,@RequestBody Home home) {
public Result<Home> addHomeById(@RequestHeader("X-Token")String token, @RequestBody Home home) {
int id = Integer.parseInt(JwtUtils.getClaimByToken(token).getSubject());
//添加新的房屋信息
home.setUserId(id);
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment