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
-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")