package com.sckw.transport.common.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;


/**
 * @author lfdc
 * @date 2023-09-17 10:30:51
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "message.logistics.order")
@RefreshScope
public class MessageUrlConfig {


    private PcMessageUrl pc;
    private AppMessageUrl app;

    @Data
    public static class PcMessageUrl {

        /**
         * 托运订单地址
         */
        private String consignLogisticsAddOrderUrl;

        /**
         * 承运订单地址
         */
        private String carriageLogisticsAddOrderUrl;


    }

    @Data
    public static class AppMessageUrl {

        /**
         * 托运订单地址
         */
        private String consignLogisticsAddOrderUrl;

        /**
         * 承运订单地址
         */
        private String carriageLogisticsAddOrderUrl;

    }

}
