修改几个主要的方法名
This commit is contained in:
parent
34077921e8
commit
102c2db617
6
main.py
6
main.py
@ -16,19 +16,19 @@ class Item(BaseModel):
|
||||
|
||||
|
||||
@app.post("/check_wx")
|
||||
async def check_wx(item: Item):
|
||||
async def check_with_wx(item: Item):
|
||||
res_wechat = await msg_sec_check(item.content)
|
||||
return res_wechat
|
||||
|
||||
|
||||
@app.post("/check_bd")
|
||||
async def check_wx(item: Item):
|
||||
async def check_with_bd(item: Item):
|
||||
res_baidu = await check_baidu(item.content)
|
||||
return res_baidu
|
||||
|
||||
|
||||
@app.post("/check_local")
|
||||
async def check_local_def(item: Item):
|
||||
async def check_with_local(item: Item):
|
||||
res_local = check_local(item.content)
|
||||
return res_local
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user