Skip to content

Commit 647e8e7

Browse files
committed
fix typo
1 parent 8069d9f commit 647e8e7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

backend/app/admin/service/plugin_service.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ async def install_git(*, repo_url: str):
113113
await install_requirements_async(repo_name)
114114
await redis_client.set(f'{settings.PLUGIN_REDIS_PREFIX}:changed', 'ture')
115115

116-
@staticmethod
117-
async def install(*, type: PluginType, file: UploadFile | None = None, repo_url: str | None = None):
116+
async def install(self, *, type: PluginType, file: UploadFile | None = None, repo_url: str | None = None):
118117
"""
119118
安装插件
120119
@@ -126,11 +125,11 @@ async def install(*, type: PluginType, file: UploadFile | None = None, repo_url:
126125
if type == PluginType.zip:
127126
if not file:
128127
raise errors.ForbiddenError(msg='ZIP 压缩包不能为空')
129-
await PluginService.install_zip(file=file)
128+
await self.install_zip(file=file)
130129
elif type == PluginType.git:
131130
if not repo_url:
132131
raise errors.ForbiddenError(msg='Git 仓库地址不能为空')
133-
await PluginService.install_git(repo_url=repo_url)
132+
await self.install_git(repo_url=repo_url)
134133

135134
@staticmethod
136135
async def uninstall(*, plugin: str):

backend/plugin/code_generator/templates/python/schema.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Update{{ schema_name }}Param({{ schema_name }}SchemaBase):
2424

2525

2626
class Delete{{ schema_name }}Param({{ schema_name }}SchemaBase):
27-
"""更新{{ doc_comment }}参数"""
27+
"""删除{{ doc_comment }}参数"""
2828

2929

3030
class Get{{ schema_name }}Detail({{ schema_name }}SchemaBase):

0 commit comments

Comments
 (0)