项目基础模块代码

This commit is contained in:
2025-02-19 16:57:49 +08:00
parent 31302bcd17
commit bed123c532
14 changed files with 159 additions and 57 deletions

View File

@ -19,7 +19,7 @@ def user_pager(user: SysUserPager, session: Session = Depends(get_db)):
return rc.response_success_pager(pager)
@user.post("/")
@user.post("/add")
def add_user(user: SysUserIn, session: Session = Depends(get_db)):
"""
新增用户
@ -81,4 +81,4 @@ def start_user(id: int, session: Session = Depends(get_db)):
if user is None:
return rc.response_error("用户查询错误,请稍后再试")
us.start_user(user)
return rc.response_success("启用用户成功")
return rc.response_success("启用用户成功")