MrShi
8 小时以前 9eeb62c02a7b3c7b95c20678b6a9c74e7f12f943
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.doumee.core.douyin;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 抖音开放平台(生活服务 / 团购核销)配置。
 * <p>仅保留与门店无关的技术参数(网关 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";
}