pushx.provider#
- pydantic model pushx.provider.BaseProviderParams[源代码]#
基类:
BaseModel
Show JSON schema
{ "title": "BaseProviderParams", "type": "object", "properties": {} }
- pydantic model pushx.provider.NotifierParams[源代码]#
-
Show JSON schema
{ "title": "NotifierParams", "type": "object", "properties": {} }
- pydantic model pushx.provider.NotifyParams[源代码]#
-
Show JSON schema
{ "title": "NotifyParams", "type": "object", "properties": {} }
- class pushx.provider.ProviderMetadata(name: str, class_name: str, description: str, notifier_params: ~typing.Type[~pushx.provider.BaseProviderParams], notify_params: ~typing.Type[~pushx.provider.BaseProviderParams], extra: dict[~typing.Any, ~typing.Any] = <factory>)[源代码]#
基类:
object
Provider 元数据
- class_name: str#
Provider 类名
- description: str#
Provider 介绍
- extra: dict[Any, Any]#
额外信息,可自由定义
- name: str#
Provider 名称
- notifier_params: Type[BaseProviderParams]#
Notifier 所需参数
- notify_params: Type[BaseProviderParams]#
Notify 所需参数
- pydantic model pushx.provider.PushResult[源代码]#
基类:
BaseModel
Show JSON schema
{ "title": "PushResult", "type": "object", "properties": { "success": { "title": "Success", "type": "boolean" }, "code": { "title": "Code", "type": "integer" }, "msg": { "default": null, "title": "Msg", "type": "string" }, "data": { "anyOf": [ {}, { "type": "null" } ], "default": null, "title": "Data" } }, "required": [ "success", "code" ] }
- field code: int [Required]#
状态码
- field data: Any | None = None#
可能的数据
- field msg: str = None#
具体信息
- field success: bool [Required]#
是否成功