Skip to content

Commit

Permalink
更新 user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Oct 18, 2024
1 parent 386ff67 commit 974fe7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/api/endpoints/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def set_config(key: str, value: Union[list, dict, bool, int, str] = None,


@router.delete("/id/{user_id}", summary="删除用户", response_model=schemas.Response)
def delete_user_from_user_id(
def delete_user_by_id(
*,
db: Session = Depends(get_db),
user_id: int,
Expand All @@ -191,7 +191,7 @@ def delete_user_from_user_id(


@router.delete("/name/{user_name}", summary="删除用户", response_model=schemas.Response)
def delete_user_from_user_id(
def delete_user_by_name(
*,
db: Session = Depends(get_db),
user_name: str,
Expand All @@ -208,7 +208,7 @@ def delete_user_from_user_id(


@router.get("/{username}", summary="用户详情", response_model=schemas.User)
def read_user_by_id(
def read_user_by_name(
username: str,
current_user: User = Depends(get_current_active_user),
db: Session = Depends(get_db),
Expand Down

0 comments on commit 974fe7c

Please sign in to comment.