2020
10-08
10-08
Django封装交互接口代码
我就废话不多说了,大家还是直接看代码吧~#!/usr/bin/envpython#-*-coding:utf-8-*-__author__='_X.xx_'__date__='2018/7/1816:44'fromdjango.httpimportJsonResponseclassHttpCode(object):ok=200paramserror=400unantu=401methoderror=405servererror=500defok():returnresult()defresult(code=HttpCode.ok,message='',data=None,kwargs=None):json_dict={'code':code,'message':...
继续阅读 >