一般get请求
@v1.route(‘/v1/s‘,methods=["PUT","POST","GET"])
@jwt_required()
def handle_s():
form = ListManuscriptForm(request.args, csrf_enabled=False)
if form.validate():
rst =s(form)
return jsonify(rst)
return jsonify(get_err(form))
一般post form = s(csrf_enabled=False) if form.validate_on_submit(): rst = s(form) return jsonify(rst) return jsonify(get_err(form))
一般put form = Update(csrf_enabled=False) if form.validate_on_submit(): rst = update(form) return jsonify(rst) return jsonify(get_(form))