server:
  port: 8713
redis:
  cache:
    expiration: 3600
wx:
  appid: wxd944da6bc72d2eb5
  secret: c048691ba59dafa663b1778914fda4ce
  notifyUrl: https://episode-api.dmfada.com/pay/weixin/notify
  prepareUrl: https://api.mch.weixin.qq.com/pay/unifiedorder
  payConfigs:
    - mchId: 1638893401
      mchKey: TcwWLRKWxqCzMlBnyrnTV9t8N5pKKtkq
    - mchId: 1699760707
      mchKey: TcwWLRKWxqCzMlBnyrnTV9t8N5pKKtkq
    - mchId: 1694682158
      mchKey: TcwWLRKWxqCzMlBnyrnTV9t8N5pKKtkq
spring:
  rabbitmq:
    host: 192.168.1.83
    port: 5672
    username: zzq223
    password: 222222
  zipkin:
    rabbitmq:
      queue: zipkin
  sleuth:
    sampler:
      percentage: 1.0

sharding:
  jdbc:
    defaultDataSourceName:
      type: com.zaxxer.hikari.HikariDataSource
      driver-class-name: com.mysql.jdbc.Driver
      username: proudkids
      password: pds123!@#
      jdbc-url: jdbc:mysql://192.168.1.82:3306/proudkids_ce_test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
    datasource:
      names: ds
      ds:
        type: com.zaxxer.hikari.HikariDataSource
        driver-class-name: com.mysql.jdbc.Driver
        username: proudkids
        password: pds123!@#
        jdbc-url: jdbc:mysql://192.168.1.82:3306/proudkids_ce_test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
    config:
      sharding:
        tables:
          sys_log:
            actual-data-nodes: ds.sys_log_${0..1}
            table-strategy:
              inline:
                sharding-column: id
                algorithm-expression: sys_log_${id % 2}
            key-generator-column-name: id
            
mybatis-plus:
  mapper-locations: classpath:/mapper/*Mapper.xml
  typeAliasesPackage: com.proudkids.pay.model.entity
  global-config:
    #主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
    id-type: 0
    #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
    field-strategy: 1
    #驼峰下划线转换
    db-column-underline: true
    #刷新mapper 调试神器
    refresh-mapper: true
    #数据库大写下划线转换
    #capital-mode: true
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: true
    
logging:
  config: classpath:logback.xml