fix menus
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.iconplus.smartproc.model.projection;
|
||||
|
||||
public interface MenusPermissionView {
|
||||
|
||||
Long getId();
|
||||
void setId(Long id);
|
||||
|
||||
String getNama();
|
||||
void setNama(String nama);
|
||||
|
||||
Long getParentId();
|
||||
void setParentId(Long parentId);
|
||||
|
||||
Long getUrutan();
|
||||
void setUrutan(Long urutan);
|
||||
|
||||
String getIcon();
|
||||
void setIcon(String icon);
|
||||
|
||||
String getLink();
|
||||
void setLink(String link);
|
||||
|
||||
Boolean getCanView();
|
||||
void setCanView(Boolean canView);
|
||||
|
||||
Boolean getCanRead();
|
||||
void setCanRead(Boolean canRead);
|
||||
|
||||
Boolean getCanCreate();
|
||||
void setCanCreate(Boolean canCreate);
|
||||
|
||||
Boolean getCanUpdate();
|
||||
void setCanUpdate(Boolean canUpdate);
|
||||
|
||||
Boolean getCanDelete();
|
||||
void setCanDelete(Boolean canDelete);
|
||||
|
||||
}
|
@@ -6,7 +6,7 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@@ -14,6 +14,7 @@ import java.util.Set;
|
||||
@NoArgsConstructor
|
||||
public class LoginResponse extends BaseResponse {
|
||||
|
||||
private Long userId;
|
||||
private String accessToken;
|
||||
private Integer validity;
|
||||
private String refreshToken;
|
||||
@@ -21,6 +22,6 @@ public class LoginResponse extends BaseResponse {
|
||||
private String email;
|
||||
private Long roleId;
|
||||
private String role;
|
||||
Set<String> accessMenu;
|
||||
private List<MenusPermissionResponse> menus;
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,27 @@
|
||||
package com.iconplus.smartproc.model.response;
|
||||
|
||||
import com.iconplus.smartproc.helper.base.BaseResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class MenusPermissionResponse extends BaseResponse {
|
||||
|
||||
private Long id;
|
||||
private String nama;
|
||||
private Long parentId;
|
||||
private Long urutan;
|
||||
private String icon;
|
||||
private String link;
|
||||
private Boolean canView;
|
||||
private Boolean canRead;
|
||||
private Boolean canCreate;
|
||||
private Boolean canDelete;
|
||||
private Boolean canUpdate;
|
||||
|
||||
}
|
Reference in New Issue
Block a user