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)