feat(plugin): add PluginMeta model and JSON schema for plugin metadata

This commit is contained in:
MingxuanGame
2025-12-13 18:22:31 +08:00
parent bb181d930a
commit a24302c2df
3 changed files with 60 additions and 5 deletions

10
app/models/plugin.py Normal file
View File

@@ -0,0 +1,10 @@
from pydantic import BaseModel
class PluginMeta(BaseModel):
id: str
name: str
author: str
version: str
description: str | None = None
dependencies: list[str] = []