refactor: using plugin id to dispatch request instead

This commit is contained in:
Yeuoly
2024-09-27 21:48:48 +08:00
parent 2da32e49d0
commit c3359a9291
7 changed files with 34 additions and 31 deletions

View File

@ -173,7 +173,7 @@ class RequestInvokeEncrypt(BaseModel):
Request to encryption
"""
opt: Literal["encrypt", "decrypt"]
opt: Literal["encrypt", "decrypt", "clear"]
namespace: Literal["endpoint"]
identity: str
data: dict = Field(default_factory=dict)