|
@@ -1,4 +1,3 @@
|
|
-
|
|
|
|
from dataclasses import dataclass
|
|
from dataclasses import dataclass
|
|
from typing import List
|
|
from typing import List
|
|
|
|
|
|
@@ -14,6 +13,7 @@ class RequestConfig:
|
|
url: str
|
|
url: str
|
|
token: str
|
|
token: str
|
|
|
|
|
|
|
|
+
|
|
@dataclass
|
|
@dataclass
|
|
class Configs:
|
|
class Configs:
|
|
request: RequestConfig
|
|
request: RequestConfig
|
|
@@ -98,11 +98,12 @@ OCR_CONFIGS = {
|
|
# 字段
|
|
# 字段
|
|
cet_field = ['orientation', 'name', 'id', 'language', 'level', 'exam_time', 'score']
|
|
cet_field = ['orientation', 'name', 'id', 'language', 'level', 'exam_time', 'score']
|
|
regbook_field = ['orientation', 'name', 'id', 'gender', 'birthplace', 'birthplace_province', 'birthplace_city',
|
|
regbook_field = ['orientation', 'name', 'id', 'gender', 'birthplace', 'birthplace_province', 'birthplace_city',
|
|
- 'birthplace_region', 'native_place', 'native_place_province', 'native_place_city',
|
|
|
|
- 'native_place_region', 'blood_type', 'religion']
|
|
|
|
-business_license = ['orientation', 'social_code', 'company_name', 'legal_person', 'registered_capital', 'type', 'start_date', 'business_scope', 'expire_date', 'address', 'stamp']
|
|
|
|
|
|
+ 'birthplace_region', 'native_place', 'native_place_province', 'native_place_city',
|
|
|
|
+ 'native_place_region', 'blood_type', 'religion']
|
|
|
|
+business_license = ['orientation', 'social_code', 'company_name', 'legal_person', 'registered_capital', 'type',
|
|
|
|
+ 'start_date', 'business_scope', 'expire_date', 'address', 'stamp']
|
|
Filed = {
|
|
Filed = {
|
|
'cet': cet_field,
|
|
'cet': cet_field,
|
|
'regbook': regbook_field,
|
|
'regbook': regbook_field,
|
|
'business_license': business_license
|
|
'business_license': business_license
|
|
-}
|
|
|
|
|
|
+}
|