Ejemplo n.º 1
0
    public static string query(PrintCloudReq param)
    {
        var request = ObjectToDictionaryUtils.ObjectToMap(param);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.ELECTRONIC_ORDER_PRINT_URL, request);

        return(result);
    }
Ejemplo n.º 2
0
    public static string query(QueryTrackReq query)
    {
        var request = ObjectToDictionaryUtils.ObjectToMap(query);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.QUERY_URL, request);

        return(result);
    }
Ejemplo n.º 3
0
    public static string query(SendSmsReq query)
    {
        var request = ObjectToDictionaryUtils.ObjectToMap(query);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.SEND_SMS_URL, request);

        return(result);
    }
Ejemplo n.º 4
0
    public static string query(SubscribeReq subscribeReq)
    {
        var request = ObjectToDictionaryUtils.ObjectToMap(subscribeReq);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.SUBSCRIBE_URL, request);

        return(result);
    }
Ejemplo n.º 5
0
    /// <summary>
    /// 取消下单
    /// </summary>
    /// <param name="param"></param>
    /// <returns></returns>
    public static string cancel(BaseReq <BOrderCancelParam> param)
    {
        param.method = ApiInfoConstant.B_ORDER_CANCEL_METHOD;
        var request = ObjectToDictionaryUtils.ObjectToMap(param);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.B_ORDER_URL, request);

        return(result);
    }
Ejemplo n.º 6
0
    /// <summary>
    /// 查询运力
    /// </summary>
    /// <param name="param"></param>
    /// <returns></returns>
    public static string transportCapacity(BaseReq <BOrderQueryParam> param)
    {
        param.method = ApiInfoConstant.B_ORDER_QUERY_TRANSPORT_CAPACITY_METHOD;
        var request = ObjectToDictionaryUtils.ObjectToMap(param);

        if (request == null)
        {
            return(null);
        }
        var result = HttpUtils.doPostForm(ApiInfoConstant.B_ORDER_URL, request);

        return(result);
    }