[FWA-5] Home Create and List
This commit is contained in:
@ -9,3 +9,9 @@ class HouseService(BaseService):
|
||||
|
||||
def create(self, db: Session, house: HouseCreate):
|
||||
return self.repos.create(db=db, house=house)
|
||||
|
||||
def get_all(self, skip: int = 0, limit: int = 100):
|
||||
return self.repos.get_all(skip=skip, limit=limit)
|
||||
|
||||
def get_all_count(self, skip: int = 0, limit: int = 100):
|
||||
return self.repos.get_count_all(skip=skip, limit=limit)
|
||||
|
Reference in New Issue
Block a user