You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
325 B
16 lines
325 B
|
3 years ago
|
import sys
|
||
|
|
sys.path.append("..")
|
||
|
|
|
||
|
|
from db.session import SessionLocal
|
||
|
|
from api.v1.auth.crud.user import curd_user
|
||
|
|
|
||
|
|
def main() -> None:
|
||
|
|
|
||
|
|
db = SessionLocal()
|
||
|
|
|
||
|
|
user = curd_user.get_by_username(db, username="admin")
|
||
|
|
print(f"获取用户{user.nickname}成功")
|
||
|
|
# print("123")
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|