from dataclasses import dataclass
from typing import List


@dataclass
class ParmModel:
    Version: str
    Env: str
    UserID: str
    Session: int
    Source: str
    RC: int
    ResultMsg: str


@dataclass
class AutoPageModel:
    Mode: str
    Entity: str
    EntityRecid: int
    EntityCount: int
    Type: str
    Branch: str
    CustCode: str
    CustName: str
    Contract: str
    Site: str
    CallType: str
    ProdRef: str
    Model: str
    Remark: str
    ConfReq: str
    PageASM: str
    CSR: list
    CSR1: str
    CSR2: str
    CSR3: str
    CSR4: str
    CSR5: str
    CSRName: list
    CSRName1: str
    CSRName2: str
    CSRName3: str
    CSRName4: str
    CSRName5: str
    CovCode: list
    CovCode1: str
    CovCode2: str
    CovCode3: str
    CovCode4: str
    CovCode5: str
    CovCode6: str
    CovCode7: str
    CovCode8: str
    StopCode: list
    StopCode1: str
    StopCode2: str
    StopCode3: str
    StopCode4: str
    StopCode5: str
    RC: int
    ErrMsg: str


@dataclass
class AutoPageUpdateModel:
    Parms: ParmModel
    AutoPageJSON: List[AutoPageModel]
