Update permission in role to array
This commit is contained in:
@@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class RoleReq {
|
||||
@@ -16,7 +18,7 @@ public class RoleReq {
|
||||
|
||||
private String description;
|
||||
|
||||
private String permissions;
|
||||
private List<String> permissions;
|
||||
|
||||
private Long regionId;
|
||||
|
||||
|
||||
@@ -7,12 +7,13 @@ import net.gepafin.tendermanagement.entities.RegionEntity;
|
||||
import net.gepafin.tendermanagement.model.BaseBean;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class RoleResponseBean extends BaseBean {
|
||||
private String roleName;
|
||||
private String description;
|
||||
private String permissions;
|
||||
private List<String> permissions;
|
||||
private RegionResponseBean region;
|
||||
private String roleType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user