# ===================================
# 数据提取规则服务配置
# Extract Service Configuration
# ===================================

# 服务配置
server.port=8086
spring.application.name=extract-service

# 数据库配置 (继承自 lingyue-starter 或独立配置)
spring.datasource.url=jdbc:postgresql://localhost:5432/lingyue_zhibao
spring.datasource.username=lingyue
spring.datasource.password=lingyue123
spring.datasource.driver-class-name=org.postgresql.Driver

# MyBatis Plus 配置
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.global-config.db-config.id-type=ASSIGN_UUID
mybatis-plus.type-handlers-package=com.lingyue.common.mybatis

# Redis 配置 (用于任务进度跟踪)
spring.data.redis.host=localhost
spring.data.redis.port=6379

# RabbitMQ 配置 (用于异步任务)
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest

# 提取服务配置
extract.task.timeout=600000
extract.ai.max-retries=3
extract.ai.retry-delay=1000
extract.cache.enabled=true
extract.cache.ttl=3600

# SpringDoc 配置
springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true
springdoc.swagger-ui.path=/swagger-ui.html

# 日志配置
logging.level.com.lingyue.extract=DEBUG
logging.level.org.mybatis=DEBUG
