feat: id returned with permission details
This commit is contained in:
parent
bace6388aa
commit
a215d11df9
2 changed files with 2 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ async def create_new_permission(
|
|||
):
|
||||
raise ConflictException(message="Permission already exists")
|
||||
response = {
|
||||
"id": perm_model.id,
|
||||
"service_name": perm_model.service_name,
|
||||
"resource": perm_model.resource,
|
||||
"action": perm_model.action,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class UserSchema(CustomBaseModel):
|
|||
class PermissionSchema(CustomBaseModel):
|
||||
model_config = ConfigDict(from_attributes=True, extra="ignore")
|
||||
|
||||
id: int
|
||||
service_name: str
|
||||
resource: str
|
||||
action: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue