server:
  port: 8088

spring:
  application:
    name: platform-sync-service
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:erp_platform_sync}?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
    username: ${DB_USER:root}
    password: ${DB_PASSWORD:}
  redis:
    host: ${REDIS_HOST:localhost}
    port: ${REDIS_PORT:6379}
    password: ${REDIS_PASSWORD:}

mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  global-config:
    db-config:
      logic-delete-field: deletedAt
      logic-delete-value: NOW()
      logic-not-delete-value: NULL

logging:
  level:
    com.erp.platformsync: INFO

# 公共OpenAPI配置（来自 common-config）
erp:
  openapi:
    title: platform-sync-service API
    description: platform-sync-service 服务API文档
    version: 1.0.0
    service-url: ${platform-sync-service_SERVICE_URL:https://api.erpzbbh.cn}
