Skip to content

Commit

Permalink
fix some bug (DataLinkDC#2485)
Browse files Browse the repository at this point in the history
Co-authored-by: shuhang.chang <shuhang.chang@mtime>
  • Loading branch information
cainiao-cnj and shuhang.chang authored Nov 2, 2023
1 parent 26ac55e commit 6d623f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class MenuController {
dataType = "MenuDTO",
paramType = "body",
required = true,
dataTypeClass = Menu.class)
dataTypeClass = MenuDTO.class)
@SaCheckPermission(
value = {
PermissionConstants.AUTH_MENU_ADD_ROOT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class RoleController {
required = true,
dataType = "RoleDTO",
paramType = "body",
dataTypeClass = Role.class)
dataTypeClass = RoleDTO.class)
@SaCheckPermission(
value = {PermissionConstants.AUTH_ROLE_ADD, PermissionConstants.AUTH_ROLE_EDIT},
mode = SaMode.OR)
Expand Down
3 changes: 3 additions & 0 deletions dinky-admin/src/main/java/org/dinky/data/dto/MenuDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
@ApiModel(value = "MenuDTO", description = "API Menu Data Transfer Object")
public class MenuDTO {

@ApiModelProperty(value = "ID", dataType = "Integer", example = "1", notes = "Unique identifier for the menu")
private Integer id;

@ApiModelProperty(value = "Parent ID", dataType = "Integer", example = "0", notes = "ID of the parent menu")
private Integer parentId;

Expand Down

0 comments on commit 6d623f3

Please sign in to comment.