123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- package com.dragoninfo.dcuc.app.config;
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.stereotype.Component;
- /**
- * @author mazq
- * @date 2021/2/19
- */
- @ConfigurationProperties(prefix = "dcuc.app.resource-index")
- @Component
- @Data
- public class DcucResourceConfig {
- /**
- * 获取资源接口地址
- */
- private String resourceUrl;
- /**
- * bu服务资源请求地址
- */
- private String buServiceUrl;
- /**
- * 每页获取数量
- */
- private Integer pageSize;
- /**
- * 是否开启kafka,订阅增量消息
- */
- private boolean kafka;
- /**
- * 监听的topic消息
- */
- private String appTopic;
- /**
- * 监听的topic消息
- */
- private String serviceTopic;
- /**
- * 总线请求头参数
- */
- private String busSraId;
- /**
- * 总线请求头参数
- */
- private String busSreIdcard;
- /**
- * 服务资源配置
- */
- private ServiceResourceConfig serviceResource;
- /**
- * 应用资源配置
- */
- private AppResourceConfig appResource;
- /**
- * 菜单资源配置
- */
- private MenuResourceConfig menuResource;
- /**
- * 增量同步应用资源
- */
- private AppModifyResourceConfig appModifyResource;
- /**
- * 增量同步服务资源
- */
- private ServiceModifyResourceConfig serviceModifyResource;
- /**
- * 数据资源配置
- */
- private DataResourceConfig dataResource;
- @Data
- public static class MenuResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- * 根据id获取应用详情
- */
- private String busServiceFunc;
- /**
- * 是否需要获取菜单数据
- */
- private boolean menuEnabled;
- }
- @Data
- public static class AppResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- */
- private String busServiceFunc;
- /**
- * 总线请求头参数
- */
- private String busSreIdcard;
- }
- @Data
- public static class ServiceResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- */
- private String busServiceFunc;
- }
- @Data
- public static class AppModifyResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- */
- private String busServiceFunc;
- }
- @Data
- public static class ServiceModifyResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- */
- private String busServiceFunc;
- }
- @Data
- public static class DataResourceConfig {
- /**
- * 总线请求头参数
- */
- private String busServiceId;
- /**
- * 总线请求头参数
- */
- private String busServiceFunc;
- }
- }
|