mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
add UserOper list
This commit is contained in:
+7
-1
@@ -1,4 +1,4 @@
|
|||||||
from typing import Optional
|
from typing import Optional, List
|
||||||
|
|
||||||
from fastapi import Depends, HTTPException
|
from fastapi import Depends, HTTPException
|
||||||
from sqlalchemy.orm import Session
|
from sqlalchemy.orm import Session
|
||||||
@@ -51,6 +51,12 @@ class UserOper(DbOper):
|
|||||||
用户管理
|
用户管理
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def list(self) -> List[User]:
|
||||||
|
"""
|
||||||
|
获取用户列表
|
||||||
|
"""
|
||||||
|
return User.list(self._db)
|
||||||
|
|
||||||
def add(self, **kwargs):
|
def add(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
新增用户
|
新增用户
|
||||||
|
|||||||
Reference in New Issue
Block a user