mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
21 lines
469 B
Python
21 lines
469 B
Python
# coding=utf-8
|
|
|
|
from common.mixins.api_mixin import APIMixin
|
|
from common.result import ResultSerializer
|
|
from tools.serializers.tool import ToolModelSerializer, ToolCreateRequest
|
|
|
|
|
|
class ToolCreateResponse(ResultSerializer):
|
|
def get_data(self):
|
|
return ToolModelSerializer()
|
|
|
|
|
|
class ToolCreateAPI(APIMixin):
|
|
@staticmethod
|
|
def get_request():
|
|
return ToolCreateRequest
|
|
|
|
@staticmethod
|
|
def get_response():
|
|
return ToolCreateResponse
|