diff --git a/crud/crud_interview_tables.py b/crud/crud_interview_tables.py index 0b8d0b2..d70b2ba 100644 --- a/crud/crud_interview_tables.py +++ b/crud/crud_interview_tables.py @@ -5,10 +5,10 @@ from crud.base import CRUDBase __all__ = 'api_interview_tables', -class ApiInterviewModes(CRUDBase): +class ApiInterviewTables(CRUDBase): # 获取分组所有报表 - async def get_interview_modes(self, db: AsyncIOMotorDatabase, data_in: schemas.FindTables): + async def get_mode_tables(self, db: AsyncIOMotorDatabase, data_in: schemas.FindTables): where = data_in.where where.update({'mode_id': data_in.mode_id}) return await self.find_many(db, where, {'_id': 0}) @@ -25,4 +25,4 @@ class ApiInterviewModes(CRUDBase): return await self.update_one(db, {'table_id': data_in.table_id}, {'$set': data_in.update_data}) -api_interview_modes = ApiInterviewModes('interview_tables') +api_interview_tables = ApiInterviewTables('interview_tables')