chore: update semantic contracts and git merge handling
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# [DEF:backend.src.api.routes.admin:Module]
|
||||
# [DEF:AdminApi:Module]
|
||||
#
|
||||
# @COMPLEXITY: 3
|
||||
# @SEMANTICS: api, admin, users, roles, permissions
|
||||
@@ -93,6 +93,12 @@ async def create_user(
|
||||
# [DEF:update_user:Function]
|
||||
# @COMPLEXITY: 3
|
||||
# @PURPOSE: Updates an existing user.
|
||||
# @PRE: Current user has 'Admin' role.
|
||||
# @POST: User record is updated in the database.
|
||||
# @PARAM: user_id (str) - Target user UUID.
|
||||
# @PARAM: user_in (UserUpdate) - Updated user data.
|
||||
# @PARAM: db (Session) - Auth database session.
|
||||
# @RETURN: UserSchema - The updated user profile.
|
||||
@router.put("/users/{user_id}", response_model=UserSchema)
|
||||
async def update_user(
|
||||
user_id: str,
|
||||
@@ -128,6 +134,11 @@ async def update_user(
|
||||
# [DEF:delete_user:Function]
|
||||
# @COMPLEXITY: 3
|
||||
# @PURPOSE: Deletes a user.
|
||||
# @PRE: Current user has 'Admin' role.
|
||||
# @POST: User record is removed from the database.
|
||||
# @PARAM: user_id (str) - Target user UUID.
|
||||
# @PARAM: db (Session) - Auth database session.
|
||||
# @RETURN: None
|
||||
@router.delete("/users/{user_id}", status_code=status.HTTP_204_NO_CONTENT)
|
||||
async def delete_user(
|
||||
user_id: str,
|
||||
@@ -331,4 +342,4 @@ async def create_ad_mapping(
|
||||
return new_mapping
|
||||
# [/DEF:create_ad_mapping:Function]
|
||||
|
||||
# [/DEF:backend.src.api.routes.admin:Module]
|
||||
# [/DEF:AdminApi:Module]
|
||||
Reference in New Issue
Block a user