refactor:修改pydantic数据校验模型名

This commit is contained in:
zhengxinonly
2022-07-04 20:56:24 +08:00
parent 45874b17ee
commit ad0f174996
8 changed files with 14 additions and 57 deletions
-4
View File
@@ -3,10 +3,6 @@ from flask import Blueprint, render_template
document_bp = Blueprint('document', __name__)
# @document_bp.route('view/document/button.html')
# def document_button():
# return render_template('view/document/button.html')
@document_bp.route('/component/code/index.html')
def component_code():
return render_template('component/code/index.html')
-7
View File
@@ -5,13 +5,6 @@ from models import RightModel
from applications.view import index_bp
# @index_bp.get('/rights/')
# @view_logging_required
# @permission_required("admin:power:main")
# def rights_index():
# return render_template('admin/rights/rights.html')
@index_bp.get('/rights/power/<int:power_id>')
@view_logging_required
@permission_required("admin:power:edit")