package com.tzy.common.config;

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

@Component
public class ExpressConfig {

    public static String EXPRESS_SF_BASEURL;
//    @Value("${express.sf.blx_url:https://api-blx.benlai.com}")
    @Value("${express.sf.blx_url:https://api-blx-test.benlai.com}")
    public void setBaseUrl(String baseUrl){
        EXPRESS_SF_BASEURL = baseUrl;
        loginUrl = EXPRESS_SF_BASEURL+"/authorization/login";
        downExpressOrderUrl = EXPRESS_SF_BASEURL+"/omsservice/a/o/express/downExpressOrder";
        queryOrderDownStatus = EXPRESS_SF_BASEURL+"/omsservice/a/o/express/queryOrderDownStatus?orderCode=";
        cancelOrder = EXPRESS_SF_BASEURL+"/omsservice/a/o/express/cancelOrder?orderCode=";
    }

    public static String loginUrl ;
    public static String downExpressOrderUrl ;
    public static String queryOrderDownStatus ;
    public static String cancelOrder ;
}
