Skip to content

Commit

Permalink
增加mybatis枚举转换器
Browse files Browse the repository at this point in the history
  • Loading branch information
huaiyang committed Jan 13, 2020
1 parent 0ed14da commit 09422f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public interface AccountUserApi {
@PostMapping("/accountUserManagement/create")
BaseResponse<AccountUserVo> createAccountUser(@RequestBody AccountUserDto accountUserDto);

@GetMapping("/accountUserManagement/queryById")
BaseResponse<AccountUserVo> queryById(@RequestParam Long id);
@GetMapping("/accountUserManagement/{id}")
BaseResponse<AccountUserVo> queryById(@PathVariable("id") Long id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public BaseResponse<AccountUserVo> createAccountUser(@RequestBody AccountUserDto
}

@Override
@GetMapping(path = "/queryById")
public BaseResponse<AccountUserVo> queryById(@RequestParam Long id) {
public BaseResponse<AccountUserVo> queryById(@PathVariable("id") Long id) {
return BaseResponse.code().data(accountUserService.queryById(id)).build();
}
}

0 comments on commit 09422f6

Please sign in to comment.