修正swagger没有指定dataTypeClass导致启动出现warn日志
| | |
| | | }
|
| | |
|
| | | @ApiOperation("获取用户详细")
|
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path")
|
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
| | | @GetMapping("/{userId}")
|
| | | public AjaxResult getUser(@PathVariable Integer userId)
|
| | | {
|
| | |
| | |
|
| | | @ApiOperation("新增用户")
|
| | | @ApiImplicitParams({
|
| | | @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer"),
|
| | | @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String"),
|
| | | @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String"),
|
| | | @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String")
|
| | | @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class),
|
| | | @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class),
|
| | | @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class),
|
| | | @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class)
|
| | | })
|
| | | @PostMapping("/save")
|
| | | public AjaxResult save(UserEntity user)
|
| | |
| | | }
|
| | |
|
| | | @ApiOperation("删除用户信息")
|
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path")
|
| | | @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
| | | @DeleteMapping("/{userId}")
|
| | | public AjaxResult delete(@PathVariable Integer userId)
|
| | | {
|