26 lines
549 B
Java
26 lines
549 B
Java
|
|
package com.wecom.robot.config;
|
||
|
|
|
||
|
|
import lombok.Data;
|
||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
|
import org.springframework.stereotype.Component;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
@Data
|
||
|
|
@Component
|
||
|
|
@ConfigurationProperties(prefix = "wecom")
|
||
|
|
public class WecomConfig {
|
||
|
|
|
||
|
|
private String corpId;
|
||
|
|
private String agentId;
|
||
|
|
private String secret;
|
||
|
|
private String token;
|
||
|
|
private String encodingAesKey;
|
||
|
|
private KfConfig kf;
|
||
|
|
|
||
|
|
@Data
|
||
|
|
public static class KfConfig {
|
||
|
|
private String callbackUrl;
|
||
|
|
}
|
||
|
|
}
|