Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6935fc0

Browse files
committed
修正swagger文档参数类型
1 parent d618001 commit 6935fc0

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

‎sysadmin/organization/src/main/java/com/springboot/cloud/sysadmin/organization/rest/GroupController.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public Result add(@Valid @RequestBody GroupForm groupForm) {
3131
}
3232

3333
@ApiOperation(value = "删除用户组", notes = "根据url的id来指定删除对象")
34-
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组ID", required = true, dataType = "long")
34+
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组ID", required = true, dataType = "string")
3535
@DeleteMapping(value = "/{id}")
3636
public Result delete(@PathVariable String id) {
3737
return Result.success(groupService.delete(id));
3838
}
3939

4040
@ApiOperation(value = "修改用户组", notes = "修改指定用户组信息")
4141
@ApiImplicitParams({
42-
@ApiImplicitParam(name = "id", value = "用户组ID", required = true, dataType = "long"),
42+
@ApiImplicitParam(name = "id", value = "用户组ID", required = true, dataType = "string"),
4343
@ApiImplicitParam(name = "groupForm", value = "用户组实体", required = true, dataType = "GroupForm")
4444
})
4545
@PutMapping(value = "/{id}")
@@ -50,7 +50,7 @@ public Result update(@PathVariable String id, @Valid @RequestBody GroupForm grou
5050
}
5151

5252
@ApiOperation(value = "获取用户组", notes = "获取指定用户组信息")
53-
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组ID", required = true, dataType = "long")
53+
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组ID", required = true, dataType = "string")
5454
@GetMapping(value = "/{id}")
5555
public Result get(@PathVariable String id) {
5656
log.debug("get with id:{}", id);
@@ -82,7 +82,7 @@ public Result search(@Valid @RequestBody GroupQueryForm groupQueryForm) {
8282
}
8383

8484
@ApiOperation(value = "根据父id查询用户组", notes = "根据父id查询用户组列表")
85-
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组父ID", required = true, dataType = "long")
85+
@ApiImplicitParam(paramType = "path", name = "id", value = "用户组父ID", required = true, dataType = "string")
8686
@GetMapping(value = "/parent/{id}")
8787
public Result search(@PathVariable String id) {
8888
log.debug("query with parent id:{}", id);

‎sysadmin/organization/src/main/java/com/springboot/cloud/sysadmin/organization/rest/MenuController.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public Result add(@Valid @RequestBody MenuForm menuForm) {
3232
}
3333

3434
@ApiOperation(value = "删除菜单", notes = "根据url的id来指定删除对象")
35-
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单ID", required = true, dataType = "long")
35+
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单ID", required = true, dataType = "string")
3636
@DeleteMapping(value = "/{id}")
3737
public Result delete(@PathVariable String id) {
3838
return Result.success(menuService.delete(id));
3939
}
4040

4141
@ApiOperation(value = "修改菜单", notes = "修改指定菜单信息")
4242
@ApiImplicitParams({
43-
@ApiImplicitParam(name = "id", value = "菜单ID", required = true, dataType = "long"),
43+
@ApiImplicitParam(name = "id", value = "菜单ID", required = true, dataType = "string"),
4444
@ApiImplicitParam(name = "menuForm", value = "菜单实体", required = true, dataType = "MenuForm")
4545
})
4646
@PutMapping(value = "/{id}")
@@ -51,7 +51,7 @@ public Result update(@PathVariable String id, @Valid @RequestBody MenuForm menuF
5151
}
5252

5353
@ApiOperation(value = "获取菜单", notes = "获取指定菜单信息")
54-
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单ID", required = true, dataType = "long")
54+
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单ID", required = true, dataType = "string")
5555
@GetMapping(value = "/{id}")
5656
public Result get(@PathVariable String id) {
5757
log.debug("get with id:{}", id);
@@ -82,7 +82,7 @@ public Result search(@Valid @RequestBody MenuQueryForm menuQueryForm) {
8282
}
8383

8484
@ApiOperation(value = "根据父id查询菜单", notes = "根据父id查询菜单列表")
85-
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单父ID", required = true, dataType = "long")
85+
@ApiImplicitParam(paramType = "path", name = "id", value = "菜单父ID", required = true, dataType = "string")
8686
@GetMapping(value = "/parent/{id}")
8787
public Result search(@PathVariable String id) {
8888
log.debug("query with parent id:{}", id);

‎sysadmin/organization/src/main/java/com/springboot/cloud/sysadmin/organization/rest/PositionController.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public Result add(@Valid @RequestBody PositionForm positionForm) {
3131
}
3232

3333
@ApiOperation(value = "删除职位", notes = "根据url的id来指定删除对象")
34-
@ApiImplicitParam(paramType = "path", name = "id", value = "职位ID", required = true, dataType = "long")
34+
@ApiImplicitParam(paramType = "path", name = "id", value = "职位ID", required = true, dataType = "string")
3535
@DeleteMapping(value = "/{id}")
3636
public Result delete(@PathVariable String id) {
3737
return Result.success(positionService.delete(id));
3838
}
3939

4040
@ApiOperation(value = "修改职位", notes = "修改指定职位信息")
4141
@ApiImplicitParams({
42-
@ApiImplicitParam(name = "id", value = "职位ID", required = true, dataType = "long"),
42+
@ApiImplicitParam(name = "id", value = "职位ID", required = true, dataType = "string"),
4343
@ApiImplicitParam(name = "positionForm", value = "职位实体", required = true, dataType = "PositionForm")
4444
})
4545
@PutMapping(value = "/{id}")
@@ -50,7 +50,7 @@ public Result update(@PathVariable String id, @Valid @RequestBody PositionForm p
5050
}
5151

5252
@ApiOperation(value = "获取职位", notes = "获取指定职位信息")
53-
@ApiImplicitParam(paramType = "path", name = "id", value = "职位ID", required = true, dataType = "long")
53+
@ApiImplicitParam(paramType = "path", name = "id", value = "职位ID", required = true, dataType = "string")
5454
@GetMapping(value = "/{id}")
5555
public Result get(@PathVariable String id) {
5656
log.debug("get with id:{}", id);

‎sysadmin/organization/src/main/java/com/springboot/cloud/sysadmin/organization/rest/ResourceController.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public Result add(@Valid @RequestBody ResourceForm resourceForm) {
3232
}
3333

3434
@ApiOperation(value = "删除资源", notes = "根据url的id来指定删除对象")
35-
@ApiImplicitParam(paramType = "path", name = "id", value = "资源ID", required = true, dataType = "long")
35+
@ApiImplicitParam(paramType = "path", name = "id", value = "资源ID", required = true, dataType = "string")
3636
@DeleteMapping(value = "/{id}")
3737
public Result delete(@PathVariable String id) {
3838
return Result.success(resourceService.delete(id));
3939
}
4040

4141
@ApiOperation(value = "修改资源", notes = "修改指定资源信息")
4242
@ApiImplicitParams({
43-
@ApiImplicitParam(name = "id", value = "资源ID", required = true, dataType = "long"),
43+
@ApiImplicitParam(name = "id", value = "资源ID", required = true, dataType = "string"),
4444
@ApiImplicitParam(name = "resourceForm", value = "资源实体", required = true, dataType = "ResourceForm")
4545
})
4646
@PutMapping(value = "/{id}")
@@ -50,15 +50,15 @@ public Result update(@PathVariable String id, @Valid @RequestBody ResourceForm r
5050
}
5151

5252
@ApiOperation(value = "获取资源", notes = "获取指定资源信息")
53-
@ApiImplicitParam(paramType = "path", name = "id", value = "资源ID", required = true, dataType = "long")
53+
@ApiImplicitParam(paramType = "path", name = "id", value = "资源ID", required = true, dataType = "string")
5454
@GetMapping(value = "/{id}")
5555
public Result get(@PathVariable String id) {
5656
log.debug("get with id:{}", id);
5757
return Result.success(resourceService.get(id));
5858
}
5959

6060
@ApiOperation(value = "查询资源", notes = "根据userId查询用户所拥有的资源信息")
61-
@ApiImplicitParam(paramType = "path", name = "userId", value = "用户id", required = true, dataType = "long")
61+
@ApiImplicitParam(paramType = "path", name = "userId", value = "用户id", required = true, dataType = "string")
6262
@ApiResponses(
6363
@ApiResponse(code = 200, message = "处理成功", response = Result.class)
6464
)

‎sysadmin/organization/src/main/java/com/springboot/cloud/sysadmin/organization/rest/RoleController.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ public Result add(@Valid @RequestBody RoleForm roleForm) {
3333
}
3434

3535
@ApiOperation(value = "删除角色", notes = "根据url的id来指定删除对象")
36-
@ApiImplicitParam(paramType = "path", name = "id", value = "角色ID", required = true, dataType = "long")
36+
@ApiImplicitParam(paramType = "path", name = "id", value = "角色ID", required = true, dataType = "string")
3737
@DeleteMapping(value = "/{id}")
3838
public Result delete(@PathVariable String id) {
3939
return Result.success(roleService.delete(id));
4040
}
4141

4242
@ApiOperation(value = "修改角色", notes = "修改指定角色信息")
4343
@ApiImplicitParams({
44-
@ApiImplicitParam(name = "id", value = "角色ID", required = true, dataType = "long"),
44+
@ApiImplicitParam(name = "id", value = "角色ID", required = true, dataType = "string"),
4545
@ApiImplicitParam(name = "roleForm", value = "角色实体", required = true, dataType = "RoleUpdateForm")
4646
})
4747
@PutMapping(value = "/{id}")
@@ -51,7 +51,7 @@ public Result update(@PathVariable String id, @Valid @RequestBody RoleUpdateForm
5151
}
5252

5353
@ApiOperation(value = "获取角色", notes = "获取指定角色信息")
54-
@ApiImplicitParam(paramType = "path", name = "id", value = "角色ID", required = true, dataType = "long")
54+
@ApiImplicitParam(paramType = "path", name = "id", value = "角色ID", required = true, dataType = "string")
5555
@GetMapping(value = "/{id}")
5656
public Result get(@PathVariable String id) {
5757
log.debug("get with id:{}", id);
@@ -65,7 +65,7 @@ public Result get() {
6565
}
6666

6767
@ApiOperation(value = "查询角色", notes = "根据用户id查询用户所拥有的角色信息")
68-
@ApiImplicitParam(paramType = "path", name = "userId", value = "用户id", required = true, dataType = "long")
68+
@ApiImplicitParam(paramType = "path", name = "userId", value = "用户id", required = true, dataType = "string")
6969
@ApiResponses(
7070
@ApiResponse(code = 200, message = "处理成功", response = Result.class)
7171
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /