package com.doumee.core.douyin; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 抖音开放平台(生活服务 / 团购核销)配置。 *
仅保留与门店无关的技术参数(网关 host、Redis 缓存 key); * 业务相关且可能变动的 client_key / client_secret / account_id / poi_id * 改为存数据库字典(DOUYIN_CONFIG),后台可改、免重启,由 {@link DouyinClient} 实时读取。 * * @author rk * @date 2026/06/22 */ @Component @ConfigurationProperties(prefix = "douyin") @Data public class DouyinProperties { /** 开放平台网关,默认 https://open.douyin.com */ private String host = "https://open.douyin.com"; /** client_token 在 Redis 中的缓存 key */ private String redisTokenKey = "douyin:client_token"; }