-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitem.py
57 lines (45 loc) · 1.04 KB
/
item.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from typing import Optional
from pydantic import BaseModel
from fastapi import File
class ChangePassword(BaseModel):
username :str
old_password : str
new_password : str
class AddCamera(BaseModel):
CameraID : str
rstp_link: str
status: Optional[str] = "1"
# password : str
class DeleteCamera(BaseModel):
CameraID : str
# password : str
class EditCamera(BaseModel):
CameraID : str
rstp_link: Optional[str] = None
status: Optional[str] = "1"
# password : str
class Update(BaseModel):
password : str
class TestCamera(BaseModel):
CameraID: str
class Decode2(BaseModel):
CameraID : str
image: str
class ImagE(BaseModel):
image: str
class checkUpdate(BaseModel):
username : str
password: str
version:str
class VerifyInformation(BaseModel):
version: str
class updateVersion(BaseModel):
AIBOX_ID : str
new_version: str
status: str
class saveWrongImage(BaseModel):
input_image : str
output_image: str
time: str
camera_id: str
AIBOX_ID: str