tools-pyqt/src/entity/api.py
2024-01-18 21:16:42 +08:00

13 lines
183 B
Python

from dataclasses import dataclass
from typing import Generic, TypeVar
T = TypeVar('T')
@dataclass
class ApiResponse(Generic[T]):
data: T
message: str
status_code: int