Skip to content

Commit

Permalink
fixed role slug
Browse files Browse the repository at this point in the history
  • Loading branch information
harmlessprince committed Feb 17, 2025
1 parent 0020e21 commit b3ec23c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.harmlessprince.ecommerceApi.permission;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class PermissionResource {

private String id;

private String name;

private Boolean status = true;

private String slug;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.harmlessprince.ecommerceApi.role;

import com.harmlessprince.ecommerceApi.permission.Permission;

import com.harmlessprince.ecommerceApi.permission.PermissionResource;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Set;
import java.util.List;

@Setter
@Getter
Expand All @@ -15,5 +16,5 @@ public class RoleResource {

private String slug;

private Set<Permission> permissions;
private List<PermissionResource> permissions;
}

0 comments on commit b3ec23c

Please sign in to comment.