This commit is contained in:
xyj 2023-12-07 17:12:11 +08:00
parent 9ff77b1340
commit c6af7a38fa
20 changed files with 10 additions and 10 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
from pydantic import BaseModel, Field
from sqlalchemy import *
from src.db.base import Base
from db.base import Base
class LOT_DATA(BaseModel):

Binary file not shown.

View File

@ -1,5 +1,5 @@
from src.db.models.log_data_model import LOT_DATA_MODEL, LOT_DATA
from src.db.session import with_session
from db.models.lot_data_model import LOT_DATA_MODEL, LOT_DATA
from db.session import with_session
@with_session

View File

@ -1,6 +1,6 @@
from functools import wraps
from contextlib import contextmanager
from src.db.base import SessionLocal
from db.base import SessionLocal
from sqlalchemy.orm import Session

Binary file not shown.

View File

@ -1,6 +1,6 @@
from src.db.models.base import BaseResponse
from src.db.models.log_data_model import LOT_DATA
from src.db.repository import add_kb_to_db, get_kb_detail, delete_kb_detail_by_time
from db.models.base import BaseResponse
from db.repository import add_kb_to_db, get_kb_detail, delete_kb_detail_by_time
from db.models.lot_data_model import LOT_DATA
def add(data: LOT_DATA):

View File

@ -3,7 +3,7 @@ import time
import serial
from db.api import add
from src.api import add
from db.models.log_data_model import LOT_DATA
if __name__ == '__main__':

View File

@ -6,8 +6,8 @@ import time
import serial
import paho.mqtt.client as mqtt
from db.api import add
from db.models.log_data_model import LOT_DATA
from api import add
from db.models.lot_data_model import LOT_DATA
def t():