mirror of
https://github.com/openmax-server/server.git
synced 2026-05-23 03:51:43 +03:00
feat: 23 опкод для регистрации, смс шлюз, докер
This commit is contained in:
10
sms-gateway/app/providers/base.py
Normal file
10
sms-gateway/app/providers/base.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from app.providers import SendResult
|
||||
|
||||
class BaseProvider(ABC):
|
||||
name: str = "base"
|
||||
|
||||
@abstractmethod
|
||||
async def send(self, phone_number: str, code: str | None = None) -> SendResult:
|
||||
pass
|
||||
Reference in New Issue
Block a user