@@ -210,6 +210,14 @@ async def coffee_set(item_id: int):
coffee='1'
return {"code":"ok" }
+@app.get("/v_lst")
+async def v_lst():
+ db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
+ cursor=db.query('select id,email from hhh.step_questions')
+ result=[]
+ for c in cursor:
+ result.append({"id":c['id'],'email':c['email'],"name":"\u4f59\u96c5\u96ef","phone":"0911132431","area":"\u9ad8\u96c4\u5e02","type":"\u4e2d\u53e4\u5c4b","pin":"11~20 \u576a","create_time":"2020-09-16 01:50:00"})
+ return result
@app.get("/coffee")
async def coffee_get():