mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: Add mysql function log recorder
This commit is contained in:
parent
a3cd92c503
commit
f6586a481b
|
|
@ -156,6 +156,7 @@ class FunctionLibView(APIView):
|
|||
|
||||
@action(methods=['PUT'], detail=False)
|
||||
@has_permissions(RoleConstants.ADMIN, RoleConstants.USER)
|
||||
@log(menu=_('Function'), operate=_("Edit icon"))
|
||||
def put(self, request: Request, id: str):
|
||||
return result.success(
|
||||
FunctionLibSerializer.IconOperate(
|
||||
|
|
@ -167,6 +168,7 @@ class FunctionLibView(APIView):
|
|||
|
||||
@action(methods=['GET'], detail=False)
|
||||
@has_permissions(RoleConstants.ADMIN, RoleConstants.USER)
|
||||
@log(menu=_('Function'), operate=_("Add internal function"))
|
||||
def get(self, request: Request, id: str):
|
||||
return result.success(
|
||||
FunctionLibSerializer.InternalFunction(
|
||||
|
|
|
|||
Loading…
Reference in New Issue