From 395cc5d0434fc965a37b12c003480d88e4ecb074 Mon Sep 17 00:00:00 2001 From: "apan_youxiang@163.com" Date: Fri, 12 Aug 2022 16:24:09 +0800 Subject: [PATCH] =?UTF-8?q?token=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/drug_form/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/drug_form/views.py b/apps/drug_form/views.py index 144a7d7..d23e034 100644 --- a/apps/drug_form/views.py +++ b/apps/drug_form/views.py @@ -18,7 +18,7 @@ drug_form_router = Blueprint("drug_form", __name__) @drug_form_router.route("/getlist", methods=["GET", "POST"]) -# @token_auth.login_required +@token_auth.login_required def get_drug_form(): page = request.values.get("page", 1) page_size = request.values.get("page_size", 10) @@ -28,7 +28,7 @@ def get_drug_form(): @drug_form_router.route("/add_update", methods=["GET", "POST"]) -# @token_auth.login_required +@token_auth.login_required def add_update_drug_form(): drug_form_id = request.values.get("drug_form_id") bll_obj = BllMedicamentExtend() @@ -64,7 +64,7 @@ def add_update_drug_form(): return jsonify(Utils.true_return()) @drug_form_router.route("/del", methods=["GET", "POST"]) -# @token_auth.login_required +@token_auth.login_required def del_drug_form(): drug_form_id = request.values.get("drug_form_id") obj = BllMedicamentExtend().findEntity(EntityMedicamentExtend.id==drug_form_id)