Unverified Commit 6d623f38 authored by cainiao-cnj's avatar cainiao-cnj Committed by GitHub

fix some bug (#2485)

parent 26ac55e2
......@@ -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,
......
......@@ -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)
......
......@@ -45,6 +45,9 @@ import lombok.NoArgsConstructor;
@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;
......
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