1.职位模糊查询
This commit is contained in:
parent
4de04a83ab
commit
6b3e8fba3f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user