/controllers/api/message.py
from cloudoll.web.server import get,post,delete,put ,jsons
#get
@get('/...(code=1, msg='ok'))
上传文件
from cloudoll.web.server import post , jsons
@post('/v2/upload/image')
async...
请求rest api
支持 post ,delete , put ,head ,option
# 错误次数 尝试5次
json = http.get('https://api.xxxx.com...a=1,b=2)
http.get('https://api.xxxx.com/v2/xxxx',params=params)
# get payload 传参
params=dict(a=1,b=2...)
http.get('https://api.xxxx.com/v2/xxxx',data=params)
# post 传参
data=dict(a=1,b=2)
http.get('https: