tfse-admin-api-v0.2/user/db.py

20 lines
391 B
Python
Raw Normal View History

2022-01-10 05:22:25 +08:00
from common.DBHelper import MongoHelper
2022-01-06 17:56:30 +08:00
2022-01-10 05:22:25 +08:00
helper = MongoHelper('root', 'RYIHrqml#LSW6#!*', '116.63.130.34', '27020')
2022-01-06 17:56:30 +08:00
def find_user_info(param):
"""
查询用户信息
Parameters:
param: 查询条件
Returns:
record: 记录
"""
2022-01-10 05:22:25 +08:00
helper.database = "用户"
helper.collection = "用户信息"
helper.query = param
return helper.find_data()