Add app/response.py
This commit is contained in:
11
app/response.py
Normal file
11
app/response.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
from typing import TypedDict
|
||||||
|
|
||||||
|
class Msg(TypedDict):
|
||||||
|
message: str
|
||||||
|
tag: str
|
||||||
|
|
||||||
|
class JsonResponBase(TypedDict):
|
||||||
|
status: int
|
||||||
|
|
||||||
|
class JsonResponMsg(JsonResponBase):
|
||||||
|
body: Msg
|
||||||
Reference in New Issue
Block a user