package com.hz.pm.api.meeting.entity.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SystemProperties
 * </p>
 *
 * @author WendyYang
 * @since 14:39 2022/9/15
 */
@Data
@Component
public class WebProperties {

    public static String expertRegistrationUrl;

    public static String webUrl;

    public static String apiHost;

    public static String provincialUrl;

    @Value("${api-host:}")
    private void setApiHost(String host) {
        apiHost = host;
    }

    @Value("${expert-registration.url:/expertEnroll}")
    private void setExpertRegistrationUrl(String url) {
        expertRegistrationUrl = url;
    }

    @Value("${web.url:}")
    private void setWebUrl(String url) {
        webUrl = url;
    }

    /**
     * 省局项目管理调用跳转地址
     */
    @Value("${web.provincial:}")
    private void setProvincial(String provincial) {
        provincialUrl = provincial;
    }

}
