Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix]: fix the error: illegal start of type #122

Open
wants to merge 1 commit into
base: 1.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class DashboardCreate {
@Min(value = 1L, message = "Invalid dashboard portal id")
private Long dashboardPortalId;

@Min(value = (short) 0, message = "Invalid dashboard type")
@Max(value = (short) 1, message = "Invalid dashboard type")
@Min(value = 0, message = "Invalid dashboard type")
@Max(value = 1, message = "Invalid dashboard type")
private Short type = 0;

private Integer index = 0;
Expand Down
20 changes: 10 additions & 10 deletions server/src/main/java/edp/davinci/dto/roleDto/RelRoleProjectDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
@NotNull
public class RelRoleProjectDto {

@Min(value = (short) 0, message = "Invalid source permission")
@Max(value = (short) 3, message = "Invalid source permission")
@Min(value = 0, message = "Invalid source permission")
@Max(value = 3, message = "Invalid source permission")
private Short sourcePermission = 1;

@Min(value = (short) 0, message = "Invalid view permission")
@Max(value = (short) 3, message = "Invalid view permission")
@Min(value = 0, message = "Invalid view permission")
@Max(value = 3, message = "Invalid view permission")
private Short viewPermission = 1;

@Min(value = (short) 0, message = "Invalid widget permission")
@Max(value = (short) 3, message = "Invalid widget permission")
@Min(value = 0, message = "Invalid widget permission")
@Max(value = 3, message = "Invalid widget permission")
private Short widgetPermission = 1;

@Min(value = (short) 0, message = "Invalid viz permission")
@Max(value = (short) 3, message = "Invalid viz permission")
@Min(value = 0, message = "Invalid viz permission")
@Max(value = 3, message = "Invalid viz permission")
private Short vizPermission = 1;

@Min(value = (short) 0, message = "Invalid schedule permission")
@Max(value = (short) 3, message = "Invalid schedule permission")
@Min(value = 0, message = "Invalid schedule permission")
@Max(value = 3, message = "Invalid schedule permission")
private Short schedulePermission = 1;

private Boolean sharePermission = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class UploadMeta {
@NotBlank(message = "table name cannot be EMPTY")
private String tableName;

@Min(value = (short) 0, message = "Invalid mode")
@Max(value = (short) 2, message = "Invalid mode")
@Min(value = 0, message = "Invalid mode")
@Max(value = 2, message = "Invalid mode")
private short mode = UploadModeEnum.NEW.getMode();
}
4 changes: 2 additions & 2 deletions server/src/main/java/edp/davinci/model/Dashboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public class Dashboard extends RecordInfo<Dashboard> {
@Min(value = 1L, message = "Invalid dashboard portal id")
private Long dashboardPortalId;

@Min(value = (short) 0, message = "Invalid dashboard type")
@Max(value = (short) 2, message = "Invalid dashboard type")
@Min(value = 0, message = "Invalid dashboard type")
@Max(value = 2, message = "Invalid dashboard type")
private Short type;

private Integer index = 0;
Expand Down