Skip to content

Commit 5ae9c5c

Browse files
committed
refactor: Add mysql function log recorder
1 parent a3cd92c commit 5ae9c5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/function_lib/views/function_lib_views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class EditIcon(APIView):
156156

157157
@action(methods=['PUT'], detail=False)
158158
@has_permissions(RoleConstants.ADMIN, RoleConstants.USER)
159+
@log(menu=_('Function'), operate=_("Edit icon"))
159160
def put(self, request: Request, id: str):
160161
return result.success(
161162
FunctionLibSerializer.IconOperate(
@@ -167,6 +168,7 @@ class AddInternalFun(APIView):
167168

168169
@action(methods=['GET'], detail=False)
169170
@has_permissions(RoleConstants.ADMIN, RoleConstants.USER)
171+
@log(menu=_('Function'), operate=_("Add internal function"))
170172
def get(self, request: Request, id: str):
171173
return result.success(
172174
FunctionLibSerializer.InternalFunction(

0 commit comments

Comments
 (0)