1. Service_type do not set after add server 2. Issue relate pricing when "Update from OpenAPI" 3. Failed to set SQLAlchemy cache for key Error 4. Request Body Logging in Internal Service 5. Deleted API Key Remains Valid for 5 Minutes
18 lines
302 B
Python
18 lines
302 B
Python
from sqlalchemy.orm import DeclarativeBase
|
|
from enum import Enum as PyEnum
|
|
|
|
class Base(DeclarativeBase):
|
|
pass
|
|
|
|
|
|
class AuthMethod(PyEnum):
|
|
FREE = "free"
|
|
APIKEY = "apikey"
|
|
TOKEN = "token"
|
|
|
|
|
|
class ChargeType(PyEnum):
|
|
FREE = "free"
|
|
PER_CALL = "per_call"
|
|
PER_TOKEN = "per_token"
|