1.职位模糊查询

This commit is contained in:
李伟 2022-09-23 16:36:17 +08:00
parent 4de04a83ab
commit 6b3e8fba3f

View File

@ -27,7 +27,7 @@ class CRUDUser(CRUDBase):
return res
#获取用户信息list
async def get_users(self, db: AsyncIOMotorDatabase, user_id: list):
res = await self.find_many(db,{'user_id':{'$in': user_id}}, {'name': 1,'user_id':1})
res = await self.find_many(db,{'user_id':{'$in': user_id}}, {'name': 1,'user_id':1,'nickname':1})
return res
async def edit_profile(self, db: AsyncIOMotorDatabase, data_id: schemas.UserProfileEdit, user_id):