reformatter

This commit is contained in:
Yeuoly 2024-08-30 23:29:04 +08:00
parent de01ca8d55
commit b7c5abc5dd
No known key found for this signature in database
GPG Key ID: A66E7E320FB19F61
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class PluginEncrypter:
encrypter = ProviderConfigEncrypter(
tenant_id=tenant.id,
config=payload.data,
provider_type=payload.type,
provider_type=payload.namespace,
provider_identity=payload.identity,
)

View File

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