mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 00:42:59 +08:00
22 lines
628 B
Python
22 lines
628 B
Python
from felicity.apps.abstract.repository import BaseRepository
|
|
from felicity.apps.user.entities import Group, Permission, User, UserPreference
|
|
|
|
|
|
class UserRepository(BaseRepository[User]):
|
|
def __init__(self) -> None:
|
|
super().__init__(User)
|
|
|
|
|
|
class PermissionRepository(BaseRepository[Permission]):
|
|
def __init__(self) -> None:
|
|
super().__init__(Permission)
|
|
|
|
|
|
class GroupRepository(BaseRepository[Group]):
|
|
def __init__(self) -> None:
|
|
super().__init__(Group)
|
|
|
|
|
|
class UserPreferenceRepository(BaseRepository[UserPreference]):
|
|
def __init__(self) -> None:
|
|
super().__init__(UserPreference)
|