"""
商品应用视图聚合模块（products/views/__init__.py）

本模块原为 products/views.py（6105 行单文件），已按功能组拆分到 products/views/ 子包。
本文件作为聚合 re-export 入口，重新导出所有视图类与公共符号。
外部引用（products/urls.py、jituan/views_miniapp_assets.py、jituan/views_display.py）保持不变。

功能组拆分：
- product_query     商品/会员/分红 数据查询
- yajin_payment     押金支付流程
- jifen_payment     积分支付流程
- huiyuan_payment   会员购买支付流程
- chongzhi_payment  商家充值与充值抵扣（含 INTEGRAL_* / IDENTITY_CONFIG 常量）
- shangpin_admin    商品发布与管理后台
"""
import logging

# 各功能组视图
from .product_query import (
    ShangpinHuoquView,
    ShangpinXiangqingHuoquView,
    DashouHuiyuanList,
    GuanshiFenhongListAPI,
    AdGetAllDataView,
    HuiyuanTypeListView,
    HuiyuanRecordListView,
    ZuzhangFenhongView,
)
from .yajin_payment import (
    YajinGoumai,
    YajinHuitiao,
    YajinShibai,
    YajinLunxun,
)
from .jifen_payment import (
    JifenBuchong,
    JifenHuitiao,
    JifenShibai,
    JifenLunxun,
)
from .huiyuan_payment import (
    HuiyuanGoumai,
    HuiyuanHuitiao,
    HuiyuanShibai,
    HuiyuanLunxun,
)
from .chongzhi_payment import (
    ShangjiaChongzhi,
    ShangjiaHuitiao,
    ShangjiaShibai,
    ShangjiaChenggong,
    CzhqdyView,
    DsqrgmdhView,
    INTEGRAL_PRICE,
    INTEGRAL_INCREMENT,
    MAX_INTEGRAL,
    IDENTITY_CONFIG,
)
from .alipay_czjilu_notify import AlipayCzjiluNotifyView, CzjiluRepairView
from .zhuanpan_payment import (
    ZhuanpanGoumai,
    ZhuanpanLunxun,
    ZhuanpanShibai,
    ZhuanpanHuitiao,
    ZhuanpanJiangpinList,
    ZhuanpanChoujiang,
    ZhuanpanWode,
    AdZhuanpanHuodongView,
    AdZhuanpanJiangpinView,
    AdZhuanpanKongjiangView,
)
from .shangpin_admin import (
    ShangpinLeixingFabuView,
    ShangpinZhuanquFabuView,
    ShangpinFabuView,
    GuizeTupianShangchuanView,
    AdHuiyuanHqView,
    HuiyuanXiugaiView,
    AdHuiyuanFbView,
    AdShangpinHuQu,
    AdGonggaoXiuGai,
    AdZhuanquXiuGai,
    AdLunboXiuGai,
    AdLeixingXiuGai,
    AdShangpinNeiRongHuoQu,
    AdShangpinXiuGai,
    AdShangpinGuizeXiuGai,
)

# 重新导出原文件从 utils.oss_utils 引入的公共符号，保持外部引用不变
# （jituan/views_miniapp_assets.py、jituan/views_display.py 依赖）
from utils.oss_utils import validate_image, upload_to_oss, delete_from_oss

# 模块级符号（保持向后兼容）
logger = logging.getLogger(__name__)

__all__ = [
    # product_query
    'ShangpinHuoquView', 'ShangpinXiangqingHuoquView', 'DashouHuiyuanList',
    'GuanshiFenhongListAPI', 'AdGetAllDataView',
    'HuiyuanTypeListView', 'HuiyuanRecordListView', 'ZuzhangFenhongView',
    # yajin_payment
    'YajinGoumai', 'YajinHuitiao', 'YajinShibai', 'YajinLunxun',
    # jifen_payment
    'JifenBuchong', 'JifenHuitiao', 'JifenShibai', 'JifenLunxun',
    # huiyuan_payment
    'HuiyuanGoumai', 'HuiyuanHuitiao', 'HuiyuanShibai', 'HuiyuanLunxun',
    # chongzhi_payment
    'ShangjiaChongzhi', 'ShangjiaHuitiao', 'ShangjiaShibai', 'ShangjiaChenggong',
    'CzhqdyView', 'DsqrgmdhView',
    'INTEGRAL_PRICE', 'INTEGRAL_INCREMENT', 'MAX_INTEGRAL', 'IDENTITY_CONFIG',
    # alipay_czjilu_notify
    'AlipayCzjiluNotifyView', 'CzjiluRepairView',
    # shangpin_admin
    'ShangpinLeixingFabuView', 'ShangpinZhuanquFabuView', 'ShangpinFabuView',
    'GuizeTupianShangchuanView',
    'AdHuiyuanHqView', 'HuiyuanXiugaiView', 'AdHuiyuanFbView', 'AdShangpinHuQu',
    'AdGonggaoXiuGai', 'AdZhuanquXiuGai', 'AdLunboXiuGai', 'AdLeixingXiuGai',
    'AdShangpinNeiRongHuoQu', 'AdShangpinXiuGai', 'AdShangpinGuizeXiuGai',
    # 公共符号（向后兼容）
    'validate_image', 'upload_to_oss', 'delete_from_oss',
    'logger',
]
