refactor:修改pydantic数据校验模型名
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user