package com.jwipc.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  财务共享环境配置参数
 * </p>
 *
 * @author Chen Tianshi
 * @since 2025/12/8 16:14
 */
@Data
@Component
@ConfigurationProperties(prefix = FinancialShareProp.PREFIX)
public class FinancialShareProp {
    public final static String PREFIX = "sys.kingdee";

    private financialShare financialShare = new financialShare();
    private Image image = new Image();

    @Data
    public static class financialShare {
        private String host;
        private String appId;
        private String appSecret;
        private String accountId;
        private String user;
    }

    @Data
    public static class Image {
        private String host;
        private String clientId;
        private String clientSecret;
        private String encryptKey;
        private String fuserName;
    }
}
