|
|
|
|
|
|
|
|
import time |
|
|
import time |
|
|
from collections.abc import Callable |
|
|
from collections.abc import Callable |
|
|
from datetime import timedelta |
|
|
from datetime import timedelta |
|
|
from enum import Enum |
|
|
|
|
|
|
|
|
from enum import StrEnum, auto |
|
|
from functools import wraps |
|
|
from functools import wraps |
|
|
from typing import Optional |
|
|
from typing import Optional |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from services.feature_service import FeatureService |
|
|
from services.feature_service import FeatureService |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class WhereisUserArg(Enum): |
|
|
|
|
|
|
|
|
class WhereisUserArg(StrEnum): |
|
|
""" |
|
|
""" |
|
|
Enum for whereis_user_arg. |
|
|
Enum for whereis_user_arg. |
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
QUERY = "query" |
|
|
|
|
|
JSON = "json" |
|
|
|
|
|
FORM = "form" |
|
|
|
|
|
|
|
|
QUERY = auto() |
|
|
|
|
|
JSON = auto() |
|
|
|
|
|
FORM = auto() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FetchUserArg(BaseModel): |
|
|
class FetchUserArg(BaseModel): |