28 lines
879 B
Python
28 lines
879 B
Python
"""同步编排共享层:客户端/分页、映射、PG 写入。"""
|
|
|
|
from flows.shared import clients, db, mappers
|
|
from flows.shared.clients import (
|
|
create_riin_client,
|
|
create_sds_client,
|
|
fetch_goods_concurrent,
|
|
fetch_riin_all_pages,
|
|
fetch_sds_all_pages,
|
|
floor_to_hour,
|
|
format_date,
|
|
get_channel_type_map,
|
|
refresh_channel_type_map,
|
|
resolve_courier_source,
|
|
start_of_day,
|
|
)
|
|
from flows.shared.db import SyncDB
|
|
from flows.shared.mappers import GoodsUpsertInput, OrderUpsertInput
|
|
|
|
__all__ = [
|
|
"clients", "db", "mappers", "SyncDB",
|
|
"OrderUpsertInput", "GoodsUpsertInput",
|
|
"create_riin_client", "create_sds_client",
|
|
"fetch_riin_all_pages", "fetch_sds_all_pages", "fetch_goods_concurrent",
|
|
"get_channel_type_map", "refresh_channel_type_map", "resolve_courier_source",
|
|
"format_date", "start_of_day", "floor_to_hour",
|
|
]
|