add active ,onwer in domain

This commit is contained in:
2024-11-24 21:01:21 +09:00
parent 0fddeaa036
commit 440a0bd647
4 changed files with 16 additions and 8 deletions

View File

@@ -272,7 +272,7 @@ async def domain_details(
@r.post("/domain", response_model=Domain, response_model_exclude_none=True)
async def domain_create(
request: Request,
domain: DomainBase,
domain: DomainIn,
user=Depends(get_current_active_user),
db=Depends(get_db),
):
@@ -287,7 +287,7 @@ async def domain_create(
)
async def domain_edit(
request: Request,
domain: DomainBase,
domain: DomainIn,
user=Depends(get_current_active_user),
db=Depends(get_db),
):
@@ -312,7 +312,7 @@ async def domain_delete(
@r.get(
"/domain",
# response_model=List[Domain],
response_model=List[Domain],
response_model_exclude_none=True,
)
async def userdomain_details(