|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
from dataclasses import dataclass
|
|
|
from typing import List
|
|
|
|
|
@@ -14,6 +13,7 @@ class RequestConfig:
|
|
|
url: str
|
|
|
token: str
|
|
|
|
|
|
+
|
|
|
@dataclass
|
|
|
class Configs:
|
|
|
request: RequestConfig
|
|
@@ -98,11 +98,12 @@ OCR_CONFIGS = {
|
|
|
# 字段
|
|
|
cet_field = ['orientation', 'name', 'id', 'language', 'level', 'exam_time', 'score']
|
|
|
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 = {
|
|
|
'cet': cet_field,
|
|
|
'regbook': regbook_field,
|
|
|
'business_license': business_license
|
|
|
-}
|
|
|
+}
|