19 lines
383 B
Python
19 lines
383 B
Python
from dataclasses import dataclass
|
|
from typing import Literal
|
|
|
|
from crawler.utils.classes import DataclassBase
|
|
|
|
@dataclass(init=False)
|
|
class City(DataclassBase):
|
|
id: int = 0
|
|
city: str
|
|
region_id: int | None
|
|
region_name: str | None
|
|
is_byapt: Literal[1, 0]
|
|
|
|
@dataclass(init=False)
|
|
class Proxy(DataclassBase):
|
|
ip: str
|
|
port: str
|
|
login: str
|
|
password: str |