/*
* 后台API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: Admin
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using RestSharp;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace IO.Swagger.Api
{
///
/// Represents a collection of functions to interact with the API endpoints
///
public interface IBasicDataApi : IApiAccessor
{
#region Synchronous Operations
///
/// 按修改时间段得到修改数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<NcDealerNameCodeResp>
List BasicDataGetDealerList (DealerSearchRequest request, string authorization);
///
/// 按修改时间段得到修改数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<NcDealerNameCodeResp>
ApiResponse> BasicDataGetDealerListWithHttpInfo (DealerSearchRequest request, string authorization);
///
/// 传入一组编码,返回商品新旧关系
///
///
///
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// List<NcNewAndOldCode>
List BasicDataGetGoodsCodeList (List codes, string authorization);
///
/// 传入一组编码,返回商品新旧关系
///
///
///
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// ApiResponse of List<NcNewAndOldCode>
ApiResponse> BasicDataGetGoodsCodeListWithHttpInfo (List codes, string authorization);
///
/// 得到库存数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<GoodsStock>
List BasicDataGetGoodsStock (List listCode, string authorization);
///
/// 得到库存数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<GoodsStock>
ApiResponse> BasicDataGetGoodsStockWithHttpInfo (List listCode, string authorization);
///
/// 得到NC所有款号的数据
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// List<NcAllGoodsInfoListResp>
List BasicDataGetNcAllGoodsStyleNoList (string authorization);
///
/// 得到NC所有款号的数据
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// ApiResponse of List<NcAllGoodsInfoListResp>
ApiResponse> BasicDataGetNcAllGoodsStyleNoListWithHttpInfo (string authorization);
///
/// 根据编码得到加盟商信息
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// List<NcDealerInfo>
List BasicDataGetNcDealerInfoList (string code, string authorization);
///
/// 根据编码得到加盟商信息
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// ApiResponse of List<NcDealerInfo>
ApiResponse> BasicDataGetNcDealerInfoListWithHttpInfo (string code, string authorization);
///
/// 得到物料分类
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// List<OurGoodsCategoryInfo>
List BasicDataGetNcGoodsCategoryList (string authorization);
///
/// 得到物料分类
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// ApiResponse of List<OurGoodsCategoryInfo>
ApiResponse> BasicDataGetNcGoodsCategoryListWithHttpInfo (string authorization);
///
/// 得到模糊搜索的店铺列表
///
///
///
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// List<NcShopInfo>
List BasicDataGetNcShopInfo (string code, string authorization);
///
/// 得到模糊搜索的店铺列表
///
///
///
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// ApiResponse of List<NcShopInfo>
ApiResponse> BasicDataGetNcShopInfoWithHttpInfo (string code, string authorization);
///
/// 按修改时间段返回店铺
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<NcShopListResp>
List BasicDataGetNcShopList (ShopSearchRequest request, string authorization);
///
/// 按修改时间段返回店铺
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<NcShopListResp>
ApiResponse> BasicDataGetNcShopListWithHttpInfo (ShopSearchRequest request, string authorization);
///
/// SKU分页列表
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// PageResultNcGoodsListInfo
PageResultNcGoodsListInfo BasicDataGetNcSkuPageList (PagedSearchGoodsSearchRequest search, string authorization);
///
/// SKU分页列表
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of PageResultNcGoodsListInfo
ApiResponse BasicDataGetNcSkuPageListWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization);
///
/// 根据编码,不管新旧,得到新的店铺编码
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// string
string BasicDataGetNewShopCode (string code, string authorization);
///
/// 根据编码,不管新旧,得到新的店铺编码
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of string
ApiResponse BasicDataGetNewShopCodeWithHttpInfo (string code, string authorization);
///
/// 根据分类编码得到根节点编码
///
///
///
///
/// Thrown when fails to make API call
/// 分类编码
/// 访问令牌
/// string
string BasicDataGetRootClassCode (string code, string authorization);
///
/// 根据分类编码得到根节点编码
///
///
///
///
/// Thrown when fails to make API call
/// 分类编码
/// 访问令牌
/// ApiResponse of string
ApiResponse BasicDataGetRootClassCodeWithHttpInfo (string code, string authorization);
///
/// 根据SKU编码得到一组SKU数据
///
///
///
///
/// Thrown when fails to make API call
/// 一组编码
/// 访问令牌
/// List<NcSkuListInfo>
List BasicDataGetSkuByCodes (List codes, string authorization);
///
/// 根据SKU编码得到一组SKU数据
///
///
///
///
/// Thrown when fails to make API call
/// 一组编码
/// 访问令牌
/// ApiResponse of List<NcSkuListInfo>
ApiResponse> BasicDataGetSkuByCodesWithHttpInfo (List codes, string authorization);
///
/// 得到前N条商品,按款号搜索
///
///
///
///
/// Thrown when fails to make API call
/// 款号
/// 访问令牌
/// List<NcGoodsDetailInfo>
List BasicDataGetTopGoods (string kh, string authorization);
///
/// 得到前N条商品,按款号搜索
///
///
///
///
/// Thrown when fails to make API call
/// 款号
/// 访问令牌
/// ApiResponse of List<NcGoodsDetailInfo>
ApiResponse> BasicDataGetTopGoodsWithHttpInfo (string kh, string authorization);
///
/// 得到前10条套装商品
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// List<NcSuiteGoodsResp>
List BasicDataGetTopNcSuiteGoodsList (string code, string authorization);
///
/// 得到前10条套装商品
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// ApiResponse of List<NcSuiteGoodsResp>
ApiResponse> BasicDataGetTopNcSuiteGoodsListWithHttpInfo (string code, string authorization);
///
/// 得到前N条SKU
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// List<NcSkuDetailInfo>
List BasicDataGetTopSku (string code, string authorization);
///
/// 得到前N条SKU
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// ApiResponse of List<NcSkuDetailInfo>
ApiResponse> BasicDataGetTopSkuWithHttpInfo (string code, string authorization);
///
/// 得到前10的主题
///
///
///
///
/// Thrown when fails to make API call
/// 主题编码
/// 访问令牌
/// List<NameCode>
List BasicDataGetTopTopicList (string code, string authorization);
///
/// 得到前10的主题
///
///
///
///
/// Thrown when fails to make API call
/// 主题编码
/// 访问令牌
/// ApiResponse of List<NameCode>
ApiResponse> BasicDataGetTopTopicListWithHttpInfo (string code, string authorization);
#endregion Synchronous Operations
#region Asynchronous Operations
///
/// 按修改时间段得到修改数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<NcDealerNameCodeResp>
System.Threading.Tasks.Task> BasicDataGetDealerListAsync (DealerSearchRequest request, string authorization);
///
/// 按修改时间段得到修改数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<NcDealerNameCodeResp>)
System.Threading.Tasks.Task>> BasicDataGetDealerListAsyncWithHttpInfo (DealerSearchRequest request, string authorization);
///
/// 传入一组编码,返回商品新旧关系
///
///
///
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// Task of List<NcNewAndOldCode>
System.Threading.Tasks.Task> BasicDataGetGoodsCodeListAsync (List codes, string authorization);
///
/// 传入一组编码,返回商品新旧关系
///
///
///
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// Task of ApiResponse (List<NcNewAndOldCode>)
System.Threading.Tasks.Task>> BasicDataGetGoodsCodeListAsyncWithHttpInfo (List codes, string authorization);
///
/// 得到库存数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<GoodsStock>
System.Threading.Tasks.Task> BasicDataGetGoodsStockAsync (List listCode, string authorization);
///
/// 得到库存数据
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<GoodsStock>)
System.Threading.Tasks.Task>> BasicDataGetGoodsStockAsyncWithHttpInfo (List listCode, string authorization);
///
/// 得到NC所有款号的数据
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of List<NcAllGoodsInfoListResp>
System.Threading.Tasks.Task> BasicDataGetNcAllGoodsStyleNoListAsync (string authorization);
///
/// 得到NC所有款号的数据
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of ApiResponse (List<NcAllGoodsInfoListResp>)
System.Threading.Tasks.Task>> BasicDataGetNcAllGoodsStyleNoListAsyncWithHttpInfo (string authorization);
///
/// 根据编码得到加盟商信息
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of List<NcDealerInfo>
System.Threading.Tasks.Task> BasicDataGetNcDealerInfoListAsync (string code, string authorization);
///
/// 根据编码得到加盟商信息
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of ApiResponse (List<NcDealerInfo>)
System.Threading.Tasks.Task>> BasicDataGetNcDealerInfoListAsyncWithHttpInfo (string code, string authorization);
///
/// 得到物料分类
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of List<OurGoodsCategoryInfo>
System.Threading.Tasks.Task> BasicDataGetNcGoodsCategoryListAsync (string authorization);
///
/// 得到物料分类
///
///
///
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of ApiResponse (List<OurGoodsCategoryInfo>)
System.Threading.Tasks.Task>> BasicDataGetNcGoodsCategoryListAsyncWithHttpInfo (string authorization);
///
/// 得到模糊搜索的店铺列表
///
///
///
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// Task of List<NcShopInfo>
System.Threading.Tasks.Task> BasicDataGetNcShopInfoAsync (string code, string authorization);
///
/// 得到模糊搜索的店铺列表
///
///
///
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// Task of ApiResponse (List<NcShopInfo>)
System.Threading.Tasks.Task>> BasicDataGetNcShopInfoAsyncWithHttpInfo (string code, string authorization);
///
/// 按修改时间段返回店铺
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<NcShopListResp>
System.Threading.Tasks.Task> BasicDataGetNcShopListAsync (ShopSearchRequest request, string authorization);
///
/// 按修改时间段返回店铺
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<NcShopListResp>)
System.Threading.Tasks.Task>> BasicDataGetNcShopListAsyncWithHttpInfo (ShopSearchRequest request, string authorization);
///
/// SKU分页列表
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of PageResultNcGoodsListInfo
System.Threading.Tasks.Task BasicDataGetNcSkuPageListAsync (PagedSearchGoodsSearchRequest search, string authorization);
///
/// SKU分页列表
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (PageResultNcGoodsListInfo)
System.Threading.Tasks.Task> BasicDataGetNcSkuPageListAsyncWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization);
///
/// 根据编码,不管新旧,得到新的店铺编码
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of string
System.Threading.Tasks.Task BasicDataGetNewShopCodeAsync (string code, string authorization);
///
/// 根据编码,不管新旧,得到新的店铺编码
///
///
///
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (string)
System.Threading.Tasks.Task> BasicDataGetNewShopCodeAsyncWithHttpInfo (string code, string authorization);
///
/// 根据分类编码得到根节点编码
///
///
///
///
/// Thrown when fails to make API call
/// 分类编码
/// 访问令牌
/// Task of string
System.Threading.Tasks.Task BasicDataGetRootClassCodeAsync (string code, string authorization);
///
/// 根据分类编码得到根节点编码
///
///
///
///
/// Thrown when fails to make API call
/// 分类编码
/// 访问令牌
/// Task of ApiResponse (string)
System.Threading.Tasks.Task> BasicDataGetRootClassCodeAsyncWithHttpInfo (string code, string authorization);
///
/// 根据SKU编码得到一组SKU数据
///
///
///
///
/// Thrown when fails to make API call
/// 一组编码
/// 访问令牌
/// Task of List<NcSkuListInfo>
System.Threading.Tasks.Task> BasicDataGetSkuByCodesAsync (List codes, string authorization);
///
/// 根据SKU编码得到一组SKU数据
///
///
///
///
/// Thrown when fails to make API call
/// 一组编码
/// 访问令牌
/// Task of ApiResponse (List<NcSkuListInfo>)
System.Threading.Tasks.Task>> BasicDataGetSkuByCodesAsyncWithHttpInfo (List codes, string authorization);
///
/// 得到前N条商品,按款号搜索
///
///
///
///
/// Thrown when fails to make API call
/// 款号
/// 访问令牌
/// Task of List<NcGoodsDetailInfo>
System.Threading.Tasks.Task> BasicDataGetTopGoodsAsync (string kh, string authorization);
///
/// 得到前N条商品,按款号搜索
///
///
///
///
/// Thrown when fails to make API call
/// 款号
/// 访问令牌
/// Task of ApiResponse (List<NcGoodsDetailInfo>)
System.Threading.Tasks.Task>> BasicDataGetTopGoodsAsyncWithHttpInfo (string kh, string authorization);
///
/// 得到前10条套装商品
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of List<NcSuiteGoodsResp>
System.Threading.Tasks.Task> BasicDataGetTopNcSuiteGoodsListAsync (string code, string authorization);
///
/// 得到前10条套装商品
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of ApiResponse (List<NcSuiteGoodsResp>)
System.Threading.Tasks.Task>> BasicDataGetTopNcSuiteGoodsListAsyncWithHttpInfo (string code, string authorization);
///
/// 得到前N条SKU
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of List<NcSkuDetailInfo>
System.Threading.Tasks.Task> BasicDataGetTopSkuAsync (string code, string authorization);
///
/// 得到前N条SKU
///
///
///
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of ApiResponse (List<NcSkuDetailInfo>)
System.Threading.Tasks.Task>> BasicDataGetTopSkuAsyncWithHttpInfo (string code, string authorization);
///
/// 得到前10的主题
///
///
///
///
/// Thrown when fails to make API call
/// 主题编码
/// 访问令牌
/// Task of List<NameCode>
System.Threading.Tasks.Task> BasicDataGetTopTopicListAsync (string code, string authorization);
///
/// 得到前10的主题
///
///
///
///
/// Thrown when fails to make API call
/// 主题编码
/// 访问令牌
/// Task of ApiResponse (List<NameCode>)
System.Threading.Tasks.Task>> BasicDataGetTopTopicListAsyncWithHttpInfo (string code, string authorization);
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class BasicDataApi : IBasicDataApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class.
///
///
public BasicDataApi(String basePath)
{
this.Configuration = new IO.Swagger.Client.Configuration { BasePath = basePath };
ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory;
}
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public BasicDataApi(IO.Swagger.Client.Configuration configuration = null)
{
if (configuration == null) // use the default one in Configuration
this.Configuration = IO.Swagger.Client.Configuration.Default;
else
this.Configuration = configuration;
ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory;
}
///
/// Gets the base path of the API client.
///
/// The base path
public String GetBasePath()
{
return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
///
/// Sets the base path of the API client.
///
/// The base path
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(String basePath)
{
// do nothing
}
///
/// Gets or sets the configuration object
///
/// An instance of the Configuration
public IO.Swagger.Client.Configuration Configuration {get; set;}
///
/// Provides a factory method hook for the creation of exceptions.
///
public IO.Swagger.Client.ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
///
/// Gets the default header.
///
/// Dictionary of HTTP header
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary DefaultHeader()
{
return new ReadOnlyDictionary(this.Configuration.DefaultHeader);
}
///
/// Add default header.
///
/// Header field name.
/// Header field value.
///
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
this.Configuration.AddDefaultHeader(key, value);
}
///
/// 按修改时间段得到修改数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<NcDealerNameCodeResp>
public List BasicDataGetDealerList (DealerSearchRequest request, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetDealerListWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
///
/// 按修改时间段得到修改数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<NcDealerNameCodeResp>
public ApiResponse< List > BasicDataGetDealerListWithHttpInfo (DealerSearchRequest request, string authorization)
{
// verify the required parameter 'request' is set
if (request == null)
throw new ApiException(400, "Missing required parameter 'request' when calling BasicDataApi->BasicDataGetDealerList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetDealerList");
var localVarPath = "/api/Admin/BasicData/GetDealerList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (request != null && request.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter
}
else
{
localVarPostBody = request; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetDealerList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 按修改时间段得到修改数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<NcDealerNameCodeResp>
public async System.Threading.Tasks.Task> BasicDataGetDealerListAsync (DealerSearchRequest request, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetDealerListAsyncWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
///
/// 按修改时间段得到修改数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<NcDealerNameCodeResp>)
public async System.Threading.Tasks.Task>> BasicDataGetDealerListAsyncWithHttpInfo (DealerSearchRequest request, string authorization)
{
// verify the required parameter 'request' is set
if (request == null)
throw new ApiException(400, "Missing required parameter 'request' when calling BasicDataApi->BasicDataGetDealerList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetDealerList");
var localVarPath = "/api/Admin/BasicData/GetDealerList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (request != null && request.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter
}
else
{
localVarPostBody = request; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetDealerList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 传入一组编码,返回商品新旧关系
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// List<NcNewAndOldCode>
public List BasicDataGetGoodsCodeList (List codes, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetGoodsCodeListWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
///
/// 传入一组编码,返回商品新旧关系
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// ApiResponse of List<NcNewAndOldCode>
public ApiResponse< List > BasicDataGetGoodsCodeListWithHttpInfo (List codes, string authorization)
{
// verify the required parameter 'codes' is set
if (codes == null)
throw new ApiException(400, "Missing required parameter 'codes' when calling BasicDataApi->BasicDataGetGoodsCodeList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetGoodsCodeList");
var localVarPath = "/api/Admin/BasicData/GetGoodsCodeList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (codes != null && codes.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(codes); // http body (model) parameter
}
else
{
localVarPostBody = codes; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetGoodsCodeList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 传入一组编码,返回商品新旧关系
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// Task of List<NcNewAndOldCode>
public async System.Threading.Tasks.Task> BasicDataGetGoodsCodeListAsync (List codes, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetGoodsCodeListAsyncWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
///
/// 传入一组编码,返回商品新旧关系
///
/// Thrown when fails to make API call
/// 多个商品编码
/// 访问令牌
/// Task of ApiResponse (List<NcNewAndOldCode>)
public async System.Threading.Tasks.Task>> BasicDataGetGoodsCodeListAsyncWithHttpInfo (List codes, string authorization)
{
// verify the required parameter 'codes' is set
if (codes == null)
throw new ApiException(400, "Missing required parameter 'codes' when calling BasicDataApi->BasicDataGetGoodsCodeList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetGoodsCodeList");
var localVarPath = "/api/Admin/BasicData/GetGoodsCodeList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (codes != null && codes.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(codes); // http body (model) parameter
}
else
{
localVarPostBody = codes; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetGoodsCodeList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到库存数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<GoodsStock>
public List BasicDataGetGoodsStock (List listCode, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetGoodsStockWithHttpInfo(listCode, authorization);
return localVarResponse.Data;
}
///
/// 得到库存数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<GoodsStock>
public ApiResponse< List > BasicDataGetGoodsStockWithHttpInfo (List listCode, string authorization)
{
// verify the required parameter 'listCode' is set
if (listCode == null)
throw new ApiException(400, "Missing required parameter 'listCode' when calling BasicDataApi->BasicDataGetGoodsStock");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetGoodsStock");
var localVarPath = "/api/Admin/BasicData/GetGoodsStock";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (listCode != null && listCode.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(listCode); // http body (model) parameter
}
else
{
localVarPostBody = listCode; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetGoodsStock", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到库存数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<GoodsStock>
public async System.Threading.Tasks.Task> BasicDataGetGoodsStockAsync (List listCode, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetGoodsStockAsyncWithHttpInfo(listCode, authorization);
return localVarResponse.Data;
}
///
/// 得到库存数据
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<GoodsStock>)
public async System.Threading.Tasks.Task>> BasicDataGetGoodsStockAsyncWithHttpInfo (List listCode, string authorization)
{
// verify the required parameter 'listCode' is set
if (listCode == null)
throw new ApiException(400, "Missing required parameter 'listCode' when calling BasicDataApi->BasicDataGetGoodsStock");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetGoodsStock");
var localVarPath = "/api/Admin/BasicData/GetGoodsStock";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (listCode != null && listCode.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(listCode); // http body (model) parameter
}
else
{
localVarPostBody = listCode; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetGoodsStock", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到NC所有款号的数据
///
/// Thrown when fails to make API call
/// 访问令牌
/// List<NcAllGoodsInfoListResp>
public List BasicDataGetNcAllGoodsStyleNoList (string authorization)
{
ApiResponse> localVarResponse = BasicDataGetNcAllGoodsStyleNoListWithHttpInfo(authorization);
return localVarResponse.Data;
}
///
/// 得到NC所有款号的数据
///
/// Thrown when fails to make API call
/// 访问令牌
/// ApiResponse of List<NcAllGoodsInfoListResp>
public ApiResponse< List > BasicDataGetNcAllGoodsStyleNoListWithHttpInfo (string authorization)
{
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcAllGoodsStyleNoList");
var localVarPath = "/api/Admin/BasicData/GetNcAllGoodsStyleNoList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcAllGoodsStyleNoList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到NC所有款号的数据
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of List<NcAllGoodsInfoListResp>
public async System.Threading.Tasks.Task> BasicDataGetNcAllGoodsStyleNoListAsync (string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetNcAllGoodsStyleNoListAsyncWithHttpInfo(authorization);
return localVarResponse.Data;
}
///
/// 得到NC所有款号的数据
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of ApiResponse (List<NcAllGoodsInfoListResp>)
public async System.Threading.Tasks.Task>> BasicDataGetNcAllGoodsStyleNoListAsyncWithHttpInfo (string authorization)
{
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcAllGoodsStyleNoList");
var localVarPath = "/api/Admin/BasicData/GetNcAllGoodsStyleNoList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcAllGoodsStyleNoList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 根据编码得到加盟商信息
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// List<NcDealerInfo>
public List BasicDataGetNcDealerInfoList (string code, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetNcDealerInfoListWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
///
/// 根据编码得到加盟商信息
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// ApiResponse of List<NcDealerInfo>
public ApiResponse< List > BasicDataGetNcDealerInfoListWithHttpInfo (string code, string authorization)
{
// verify the required parameter 'code' is set
if (code == null)
throw new ApiException(400, "Missing required parameter 'code' when calling BasicDataApi->BasicDataGetNcDealerInfoList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcDealerInfoList");
var localVarPath = "/api/Admin/BasicData/GetNcDealerInfoList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcDealerInfoList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 根据编码得到加盟商信息
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of List<NcDealerInfo>
public async System.Threading.Tasks.Task> BasicDataGetNcDealerInfoListAsync (string code, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetNcDealerInfoListAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
///
/// 根据编码得到加盟商信息
///
/// Thrown when fails to make API call
/// 编码
/// 访问令牌
/// Task of ApiResponse (List<NcDealerInfo>)
public async System.Threading.Tasks.Task>> BasicDataGetNcDealerInfoListAsyncWithHttpInfo (string code, string authorization)
{
// verify the required parameter 'code' is set
if (code == null)
throw new ApiException(400, "Missing required parameter 'code' when calling BasicDataApi->BasicDataGetNcDealerInfoList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcDealerInfoList");
var localVarPath = "/api/Admin/BasicData/GetNcDealerInfoList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcDealerInfoList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到物料分类
///
/// Thrown when fails to make API call
/// 访问令牌
/// List<OurGoodsCategoryInfo>
public List BasicDataGetNcGoodsCategoryList (string authorization)
{
ApiResponse> localVarResponse = BasicDataGetNcGoodsCategoryListWithHttpInfo(authorization);
return localVarResponse.Data;
}
///
/// 得到物料分类
///
/// Thrown when fails to make API call
/// 访问令牌
/// ApiResponse of List<OurGoodsCategoryInfo>
public ApiResponse< List > BasicDataGetNcGoodsCategoryListWithHttpInfo (string authorization)
{
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcGoodsCategoryList");
var localVarPath = "/api/Admin/BasicData/GetNcGoodsCategoryList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcGoodsCategoryList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到物料分类
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of List<OurGoodsCategoryInfo>
public async System.Threading.Tasks.Task> BasicDataGetNcGoodsCategoryListAsync (string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetNcGoodsCategoryListAsyncWithHttpInfo(authorization);
return localVarResponse.Data;
}
///
/// 得到物料分类
///
/// Thrown when fails to make API call
/// 访问令牌
/// Task of ApiResponse (List<OurGoodsCategoryInfo>)
public async System.Threading.Tasks.Task>> BasicDataGetNcGoodsCategoryListAsyncWithHttpInfo (string authorization)
{
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcGoodsCategoryList");
var localVarPath = "/api/Admin/BasicData/GetNcGoodsCategoryList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcGoodsCategoryList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到模糊搜索的店铺列表
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// List<NcShopInfo>
public List BasicDataGetNcShopInfo (string code, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetNcShopInfoWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
///
/// 得到模糊搜索的店铺列表
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// ApiResponse of List<NcShopInfo>
public ApiResponse< List > BasicDataGetNcShopInfoWithHttpInfo (string code, string authorization)
{
// verify the required parameter 'code' is set
if (code == null)
throw new ApiException(400, "Missing required parameter 'code' when calling BasicDataApi->BasicDataGetNcShopInfo");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcShopInfo");
var localVarPath = "/api/Admin/BasicData/GetNcShopInfo";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcShopInfo", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 得到模糊搜索的店铺列表
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// Task of List<NcShopInfo>
public async System.Threading.Tasks.Task> BasicDataGetNcShopInfoAsync (string code, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetNcShopInfoAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
///
/// 得到模糊搜索的店铺列表
///
/// Thrown when fails to make API call
/// 店铺编码
/// 访问令牌
/// Task of ApiResponse (List<NcShopInfo>)
public async System.Threading.Tasks.Task>> BasicDataGetNcShopInfoAsyncWithHttpInfo (string code, string authorization)
{
// verify the required parameter 'code' is set
if (code == null)
throw new ApiException(400, "Missing required parameter 'code' when calling BasicDataApi->BasicDataGetNcShopInfo");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcShopInfo");
var localVarPath = "/api/Admin/BasicData/GetNcShopInfo";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcShopInfo", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 按修改时间段返回店铺
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// List<NcShopListResp>
public List BasicDataGetNcShopList (ShopSearchRequest request, string authorization)
{
ApiResponse> localVarResponse = BasicDataGetNcShopListWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
///
/// 按修改时间段返回店铺
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// ApiResponse of List<NcShopListResp>
public ApiResponse< List > BasicDataGetNcShopListWithHttpInfo (ShopSearchRequest request, string authorization)
{
// verify the required parameter 'request' is set
if (request == null)
throw new ApiException(400, "Missing required parameter 'request' when calling BasicDataApi->BasicDataGetNcShopList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcShopList");
var localVarPath = "/api/Admin/BasicData/GetNcShopList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary();
var localVarFileParams = new Dictionary();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json",
"text/json",
"application/xml",
"text/xml"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (authorization != null) localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization)); // header parameter
if (request != null && request.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter
}
else
{
localVarPostBody = request; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("BasicDataGetNcShopList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
}
///
/// 按修改时间段返回店铺
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of List<NcShopListResp>
public async System.Threading.Tasks.Task> BasicDataGetNcShopListAsync (ShopSearchRequest request, string authorization)
{
ApiResponse> localVarResponse = await BasicDataGetNcShopListAsyncWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
///
/// 按修改时间段返回店铺
///
/// Thrown when fails to make API call
///
/// 访问令牌
/// Task of ApiResponse (List<NcShopListResp>)
public async System.Threading.Tasks.Task>> BasicDataGetNcShopListAsyncWithHttpInfo (ShopSearchRequest request, string authorization)
{
// verify the required parameter 'request' is set
if (request == null)
throw new ApiException(400, "Missing required parameter 'request' when calling BasicDataApi->BasicDataGetNcShopList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcShopList");
var localVarPath = "/api/Admin/BasicData/GetNcShopList";
var localVarPathParams = new Dictionary();
var localVarQueryParams = new List>();
var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary