mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-14 18:58:13 +08:00
15 lines
216 B
Python
15 lines
216 B
Python
from enum import Enum
|
|
|
|
|
|
class StrEnum(str, Enum):
|
|
def __str__(self):
|
|
return self.value
|
|
|
|
|
|
class Method(StrEnum):
|
|
GET = "GET"
|
|
POST = "POST"
|
|
DELETE = "DELETE"
|
|
PUT = "PUT"
|
|
PATCH = "PATCH"
|