签入版本
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s

This commit is contained in:
2026-09-16 11:28:28 +08:00
parent 4bf5b7b706
commit 004f32dce1
32 changed files with 427 additions and 253 deletions
+4 -4
View File
@@ -53,8 +53,8 @@ class CityAddHandler(BaseHandler):
"""添加城市。"""
@permission_required("sys:city:add")
@check_demo
@operation_log("城市管理", "添加")
@check_demo
async def post(self):
"""POST 请求:新增城市。"""
return await city_service.add(self)
@@ -67,8 +67,8 @@ class CityUpdateHandler(BaseHandler):
"""更新城市。"""
@permission_required("sys:city:update")
@check_demo
@operation_log("城市管理", "更新")
@check_demo
async def put(self):
"""PUT 请求:更新城市信息。"""
return await city_service.update(self)
@@ -81,8 +81,8 @@ class CityDeleteHandler(BaseHandler):
"""删除城市。"""
@permission_required("sys:city:delete")
@check_demo
@operation_log("城市管理", "删除")
@check_demo
async def delete(self, id):
"""DELETE 请求:按 ID 删除城市(软删除)。
@@ -98,8 +98,8 @@ class CityBatchDeleteHandler(BaseHandler):
"""批量删除城市。"""
@permission_required("sys:city:delete")
@check_demo
@operation_log("城市管理", "批量删除")
@check_demo
async def post(self):
"""POST 请求:批量删除城市(软删除)。"""
return await city_service.batch_delete(self)