This commit is contained in:
Àî×ÚÕñ 2022-08-26 17:19:31 +08:00
parent ca69c8a86a
commit 197287ee3e

View File

@ -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')