Commit 241338bc by “zcwang”

add: apollo配置

parent 03f427cc
/**
* @(#)AppConfig.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.biz.config;
import org.springframework.stereotype.Component;
import com.ctrip.framework.apollo.spring.annotation.EnableAutoUpdateApolloConfig;
import com.ctrip.framework.apollo.spring.annotation.ValueMapping;
import lombok.Data;
/**
* @Author zcwang
* @Date 2022/11/14
*/
@Component
@EnableAutoUpdateApolloConfig("application")
@Data
public class AppConfig {
@ValueMapping("${titleConfig:[]}")
private TitleConfig titleConfig;
}
\ No newline at end of file
/**
* @(#)ChangeFileConfig.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.biz.config;
import lombok.Data;
/**
* @Author zcwang
* @Date 2022/11/14
*/
@Data
public class ChangeFileConfig {
/**
* 文件链接
*/
private String fileUrl;
/**
* 文件名
*/
private String fileName;
}
\ No newline at end of file
/**
* @(#)TitleConfig.java, 2022/11/14.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.biz.config;
import java.util.List;
import lombok.Data;
/**
* @Author zcwang
* @Date 2022/11/14
*/
@Data
public class TitleConfig {
/**
* 提示文案
*/
private String title;
/**
* 文件
*/
private List<ChangeFileConfig> changeFileConfigList;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment