2025-04-24 18:31:27 +08:00

3395 lines
174 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台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
{
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IBasicDataApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcDealerNameCodeResp&gt;</returns>
List<NcDealerNameCodeResp> BasicDataGetDealerList (DealerSearchRequest request, string authorization);
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcDealerNameCodeResp&gt;</returns>
ApiResponse<List<NcDealerNameCodeResp>> BasicDataGetDealerListWithHttpInfo (DealerSearchRequest request, string authorization);
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcNewAndOldCode&gt;</returns>
List<NcNewAndOldCode> BasicDataGetGoodsCodeList (List<string> codes, string authorization);
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcNewAndOldCode&gt;</returns>
ApiResponse<List<NcNewAndOldCode>> BasicDataGetGoodsCodeListWithHttpInfo (List<string> codes, string authorization);
/// <summary>
/// 得到库存数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;GoodsStock&gt;</returns>
List<GoodsStock> BasicDataGetGoodsStock (List<string> listCode, string authorization);
/// <summary>
/// 得到库存数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;GoodsStock&gt;</returns>
ApiResponse<List<GoodsStock>> BasicDataGetGoodsStockWithHttpInfo (List<string> listCode, string authorization);
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcAllGoodsInfoListResp&gt;</returns>
List<NcAllGoodsInfoListResp> BasicDataGetNcAllGoodsStyleNoList (string authorization);
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcAllGoodsInfoListResp&gt;</returns>
ApiResponse<List<NcAllGoodsInfoListResp>> BasicDataGetNcAllGoodsStyleNoListWithHttpInfo (string authorization);
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcDealerInfo&gt;</returns>
List<NcDealerInfo> BasicDataGetNcDealerInfoList (string code, string authorization);
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcDealerInfo&gt;</returns>
ApiResponse<List<NcDealerInfo>> BasicDataGetNcDealerInfoListWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到物料分类
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;OurGoodsCategoryInfo&gt;</returns>
List<OurGoodsCategoryInfo> BasicDataGetNcGoodsCategoryList (string authorization);
/// <summary>
/// 得到物料分类
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;OurGoodsCategoryInfo&gt;</returns>
ApiResponse<List<OurGoodsCategoryInfo>> BasicDataGetNcGoodsCategoryListWithHttpInfo (string authorization);
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcShopInfo&gt;</returns>
List<NcShopInfo> BasicDataGetNcShopInfo (string code, string authorization);
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcShopInfo&gt;</returns>
ApiResponse<List<NcShopInfo>> BasicDataGetNcShopInfoWithHttpInfo (string code, string authorization);
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcShopListResp&gt;</returns>
List<NcShopListResp> BasicDataGetNcShopList (ShopSearchRequest request, string authorization);
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcShopListResp&gt;</returns>
ApiResponse<List<NcShopListResp>> BasicDataGetNcShopListWithHttpInfo (ShopSearchRequest request, string authorization);
/// <summary>
/// SKU分页列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>PageResultNcGoodsListInfo</returns>
PageResultNcGoodsListInfo BasicDataGetNcSkuPageList (PagedSearchGoodsSearchRequest search, string authorization);
/// <summary>
/// SKU分页列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of PageResultNcGoodsListInfo</returns>
ApiResponse<PageResultNcGoodsListInfo> BasicDataGetNcSkuPageListWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization);
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>string</returns>
string BasicDataGetNewShopCode (string code, string authorization);
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of string</returns>
ApiResponse<string> BasicDataGetNewShopCodeWithHttpInfo (string code, string authorization);
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>string</returns>
string BasicDataGetRootClassCode (string code, string authorization);
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of string</returns>
ApiResponse<string> BasicDataGetRootClassCodeWithHttpInfo (string code, string authorization);
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSkuListInfo&gt;</returns>
List<NcSkuListInfo> BasicDataGetSkuByCodes (List<string> codes, string authorization);
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSkuListInfo&gt;</returns>
ApiResponse<List<NcSkuListInfo>> BasicDataGetSkuByCodesWithHttpInfo (List<string> codes, string authorization);
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcGoodsDetailInfo&gt;</returns>
List<NcGoodsDetailInfo> BasicDataGetTopGoods (string kh, string authorization);
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcGoodsDetailInfo&gt;</returns>
ApiResponse<List<NcGoodsDetailInfo>> BasicDataGetTopGoodsWithHttpInfo (string kh, string authorization);
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSuiteGoodsResp&gt;</returns>
List<NcSuiteGoodsResp> BasicDataGetTopNcSuiteGoodsList (string code, string authorization);
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSuiteGoodsResp&gt;</returns>
ApiResponse<List<NcSuiteGoodsResp>> BasicDataGetTopNcSuiteGoodsListWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSkuDetailInfo&gt;</returns>
List<NcSkuDetailInfo> BasicDataGetTopSku (string code, string authorization);
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSkuDetailInfo&gt;</returns>
ApiResponse<List<NcSkuDetailInfo>> BasicDataGetTopSkuWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到前10的主题
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NameCode&gt;</returns>
List<NameCode> BasicDataGetTopTopicList (string code, string authorization);
/// <summary>
/// 得到前10的主题
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NameCode&gt;</returns>
ApiResponse<List<NameCode>> BasicDataGetTopTopicListWithHttpInfo (string code, string authorization);
#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcDealerNameCodeResp&gt;</returns>
System.Threading.Tasks.Task<List<NcDealerNameCodeResp>> BasicDataGetDealerListAsync (DealerSearchRequest request, string authorization);
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcDealerNameCodeResp&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcDealerNameCodeResp>>> BasicDataGetDealerListAsyncWithHttpInfo (DealerSearchRequest request, string authorization);
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcNewAndOldCode&gt;</returns>
System.Threading.Tasks.Task<List<NcNewAndOldCode>> BasicDataGetGoodsCodeListAsync (List<string> codes, string authorization);
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcNewAndOldCode&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcNewAndOldCode>>> BasicDataGetGoodsCodeListAsyncWithHttpInfo (List<string> codes, string authorization);
/// <summary>
/// 得到库存数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;GoodsStock&gt;</returns>
System.Threading.Tasks.Task<List<GoodsStock>> BasicDataGetGoodsStockAsync (List<string> listCode, string authorization);
/// <summary>
/// 得到库存数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;GoodsStock&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<GoodsStock>>> BasicDataGetGoodsStockAsyncWithHttpInfo (List<string> listCode, string authorization);
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcAllGoodsInfoListResp&gt;</returns>
System.Threading.Tasks.Task<List<NcAllGoodsInfoListResp>> BasicDataGetNcAllGoodsStyleNoListAsync (string authorization);
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcAllGoodsInfoListResp&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcAllGoodsInfoListResp>>> BasicDataGetNcAllGoodsStyleNoListAsyncWithHttpInfo (string authorization);
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcDealerInfo&gt;</returns>
System.Threading.Tasks.Task<List<NcDealerInfo>> BasicDataGetNcDealerInfoListAsync (string code, string authorization);
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcDealerInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcDealerInfo>>> BasicDataGetNcDealerInfoListAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到物料分类
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;OurGoodsCategoryInfo&gt;</returns>
System.Threading.Tasks.Task<List<OurGoodsCategoryInfo>> BasicDataGetNcGoodsCategoryListAsync (string authorization);
/// <summary>
/// 得到物料分类
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;OurGoodsCategoryInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<OurGoodsCategoryInfo>>> BasicDataGetNcGoodsCategoryListAsyncWithHttpInfo (string authorization);
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcShopInfo&gt;</returns>
System.Threading.Tasks.Task<List<NcShopInfo>> BasicDataGetNcShopInfoAsync (string code, string authorization);
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcShopInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcShopInfo>>> BasicDataGetNcShopInfoAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcShopListResp&gt;</returns>
System.Threading.Tasks.Task<List<NcShopListResp>> BasicDataGetNcShopListAsync (ShopSearchRequest request, string authorization);
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcShopListResp&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcShopListResp>>> BasicDataGetNcShopListAsyncWithHttpInfo (ShopSearchRequest request, string authorization);
/// <summary>
/// SKU分页列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of PageResultNcGoodsListInfo</returns>
System.Threading.Tasks.Task<PageResultNcGoodsListInfo> BasicDataGetNcSkuPageListAsync (PagedSearchGoodsSearchRequest search, string authorization);
/// <summary>
/// SKU分页列表
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (PageResultNcGoodsListInfo)</returns>
System.Threading.Tasks.Task<ApiResponse<PageResultNcGoodsListInfo>> BasicDataGetNcSkuPageListAsyncWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization);
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> BasicDataGetNewShopCodeAsync (string code, string authorization);
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (string)</returns>
System.Threading.Tasks.Task<ApiResponse<string>> BasicDataGetNewShopCodeAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> BasicDataGetRootClassCodeAsync (string code, string authorization);
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (string)</returns>
System.Threading.Tasks.Task<ApiResponse<string>> BasicDataGetRootClassCodeAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSkuListInfo&gt;</returns>
System.Threading.Tasks.Task<List<NcSkuListInfo>> BasicDataGetSkuByCodesAsync (List<string> codes, string authorization);
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSkuListInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcSkuListInfo>>> BasicDataGetSkuByCodesAsyncWithHttpInfo (List<string> codes, string authorization);
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcGoodsDetailInfo&gt;</returns>
System.Threading.Tasks.Task<List<NcGoodsDetailInfo>> BasicDataGetTopGoodsAsync (string kh, string authorization);
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcGoodsDetailInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcGoodsDetailInfo>>> BasicDataGetTopGoodsAsyncWithHttpInfo (string kh, string authorization);
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSuiteGoodsResp&gt;</returns>
System.Threading.Tasks.Task<List<NcSuiteGoodsResp>> BasicDataGetTopNcSuiteGoodsListAsync (string code, string authorization);
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSuiteGoodsResp&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcSuiteGoodsResp>>> BasicDataGetTopNcSuiteGoodsListAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSkuDetailInfo&gt;</returns>
System.Threading.Tasks.Task<List<NcSkuDetailInfo>> BasicDataGetTopSkuAsync (string code, string authorization);
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSkuDetailInfo&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NcSkuDetailInfo>>> BasicDataGetTopSkuAsyncWithHttpInfo (string code, string authorization);
/// <summary>
/// 得到前10的主题
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NameCode&gt;</returns>
System.Threading.Tasks.Task<List<NameCode>> BasicDataGetTopTopicListAsync (string code, string authorization);
/// <summary>
/// 得到前10的主题
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NameCode&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<NameCode>>> BasicDataGetTopTopicListAsyncWithHttpInfo (string code, string authorization);
#endregion Asynchronous Operations
}
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class BasicDataApi : IBasicDataApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary>
/// Initializes a new instance of the <see cref="BasicDataApi"/> class.
/// </summary>
/// <returns></returns>
public BasicDataApi(String basePath)
{
this.Configuration = new IO.Swagger.Client.Configuration { BasePath = basePath };
ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="BasicDataApi"/> class
/// using Configuration object
/// </summary>
/// <param name="configuration">An instance of Configuration</param>
/// <returns></returns>
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;
}
/// <summary>
/// Gets the base path of the API client.
/// </summary>
/// <value>The base path</value>
public String GetBasePath()
{
return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
/// <summary>
/// Sets the base path of the API client.
/// </summary>
/// <value>The base path</value>
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(String basePath)
{
// do nothing
}
/// <summary>
/// Gets or sets the configuration object
/// </summary>
/// <value>An instance of the Configuration</value>
public IO.Swagger.Client.Configuration Configuration {get; set;}
/// <summary>
/// Provides a factory method hook for the creation of exceptions.
/// </summary>
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; }
}
/// <summary>
/// Gets the default header.
/// </summary>
/// <returns>Dictionary of HTTP header</returns>
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary<String, String> DefaultHeader()
{
return new ReadOnlyDictionary<string, string>(this.Configuration.DefaultHeader);
}
/// <summary>
/// Add default header.
/// </summary>
/// <param name="key">Header field name.</param>
/// <param name="value">Header field value.</param>
/// <returns></returns>
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
this.Configuration.AddDefaultHeader(key, value);
}
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcDealerNameCodeResp&gt;</returns>
public List<NcDealerNameCodeResp> BasicDataGetDealerList (DealerSearchRequest request, string authorization)
{
ApiResponse<List<NcDealerNameCodeResp>> localVarResponse = BasicDataGetDealerListWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcDealerNameCodeResp&gt;</returns>
public ApiResponse< List<NcDealerNameCodeResp> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcDealerNameCodeResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcDealerNameCodeResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcDealerNameCodeResp>)));
}
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcDealerNameCodeResp&gt;</returns>
public async System.Threading.Tasks.Task<List<NcDealerNameCodeResp>> BasicDataGetDealerListAsync (DealerSearchRequest request, string authorization)
{
ApiResponse<List<NcDealerNameCodeResp>> localVarResponse = await BasicDataGetDealerListAsyncWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 按修改时间段得到修改数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcDealerNameCodeResp&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcDealerNameCodeResp>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcDealerNameCodeResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcDealerNameCodeResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcDealerNameCodeResp>)));
}
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcNewAndOldCode&gt;</returns>
public List<NcNewAndOldCode> BasicDataGetGoodsCodeList (List<string> codes, string authorization)
{
ApiResponse<List<NcNewAndOldCode>> localVarResponse = BasicDataGetGoodsCodeListWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcNewAndOldCode&gt;</returns>
public ApiResponse< List<NcNewAndOldCode> > BasicDataGetGoodsCodeListWithHttpInfo (List<string> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcNewAndOldCode>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcNewAndOldCode>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcNewAndOldCode>)));
}
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcNewAndOldCode&gt;</returns>
public async System.Threading.Tasks.Task<List<NcNewAndOldCode>> BasicDataGetGoodsCodeListAsync (List<string> codes, string authorization)
{
ApiResponse<List<NcNewAndOldCode>> localVarResponse = await BasicDataGetGoodsCodeListAsyncWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 传入一组编码,返回商品新旧关系
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">多个商品编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcNewAndOldCode&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcNewAndOldCode>>> BasicDataGetGoodsCodeListAsyncWithHttpInfo (List<string> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcNewAndOldCode>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcNewAndOldCode>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcNewAndOldCode>)));
}
/// <summary>
/// 得到库存数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;GoodsStock&gt;</returns>
public List<GoodsStock> BasicDataGetGoodsStock (List<string> listCode, string authorization)
{
ApiResponse<List<GoodsStock>> localVarResponse = BasicDataGetGoodsStockWithHttpInfo(listCode, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到库存数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;GoodsStock&gt;</returns>
public ApiResponse< List<GoodsStock> > BasicDataGetGoodsStockWithHttpInfo (List<string> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<GoodsStock>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<GoodsStock>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<GoodsStock>)));
}
/// <summary>
/// 得到库存数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;GoodsStock&gt;</returns>
public async System.Threading.Tasks.Task<List<GoodsStock>> BasicDataGetGoodsStockAsync (List<string> listCode, string authorization)
{
ApiResponse<List<GoodsStock>> localVarResponse = await BasicDataGetGoodsStockAsyncWithHttpInfo(listCode, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到库存数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="listCode"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;GoodsStock&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<GoodsStock>>> BasicDataGetGoodsStockAsyncWithHttpInfo (List<string> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<GoodsStock>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<GoodsStock>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<GoodsStock>)));
}
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcAllGoodsInfoListResp&gt;</returns>
public List<NcAllGoodsInfoListResp> BasicDataGetNcAllGoodsStyleNoList (string authorization)
{
ApiResponse<List<NcAllGoodsInfoListResp>> localVarResponse = BasicDataGetNcAllGoodsStyleNoListWithHttpInfo(authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcAllGoodsInfoListResp&gt;</returns>
public ApiResponse< List<NcAllGoodsInfoListResp> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcAllGoodsInfoListResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcAllGoodsInfoListResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcAllGoodsInfoListResp>)));
}
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcAllGoodsInfoListResp&gt;</returns>
public async System.Threading.Tasks.Task<List<NcAllGoodsInfoListResp>> BasicDataGetNcAllGoodsStyleNoListAsync (string authorization)
{
ApiResponse<List<NcAllGoodsInfoListResp>> localVarResponse = await BasicDataGetNcAllGoodsStyleNoListAsyncWithHttpInfo(authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到NC所有款号的数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcAllGoodsInfoListResp&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcAllGoodsInfoListResp>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcAllGoodsInfoListResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcAllGoodsInfoListResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcAllGoodsInfoListResp>)));
}
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcDealerInfo&gt;</returns>
public List<NcDealerInfo> BasicDataGetNcDealerInfoList (string code, string authorization)
{
ApiResponse<List<NcDealerInfo>> localVarResponse = BasicDataGetNcDealerInfoListWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcDealerInfo&gt;</returns>
public ApiResponse< List<NcDealerInfo> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcDealerInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcDealerInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcDealerInfo>)));
}
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcDealerInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<NcDealerInfo>> BasicDataGetNcDealerInfoListAsync (string code, string authorization)
{
ApiResponse<List<NcDealerInfo>> localVarResponse = await BasicDataGetNcDealerInfoListAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据编码得到加盟商信息
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcDealerInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcDealerInfo>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcDealerInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcDealerInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcDealerInfo>)));
}
/// <summary>
/// 得到物料分类
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;OurGoodsCategoryInfo&gt;</returns>
public List<OurGoodsCategoryInfo> BasicDataGetNcGoodsCategoryList (string authorization)
{
ApiResponse<List<OurGoodsCategoryInfo>> localVarResponse = BasicDataGetNcGoodsCategoryListWithHttpInfo(authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到物料分类
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;OurGoodsCategoryInfo&gt;</returns>
public ApiResponse< List<OurGoodsCategoryInfo> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<OurGoodsCategoryInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<OurGoodsCategoryInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<OurGoodsCategoryInfo>)));
}
/// <summary>
/// 得到物料分类
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;OurGoodsCategoryInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<OurGoodsCategoryInfo>> BasicDataGetNcGoodsCategoryListAsync (string authorization)
{
ApiResponse<List<OurGoodsCategoryInfo>> localVarResponse = await BasicDataGetNcGoodsCategoryListAsyncWithHttpInfo(authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到物料分类
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;OurGoodsCategoryInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<OurGoodsCategoryInfo>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<OurGoodsCategoryInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<OurGoodsCategoryInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<OurGoodsCategoryInfo>)));
}
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcShopInfo&gt;</returns>
public List<NcShopInfo> BasicDataGetNcShopInfo (string code, string authorization)
{
ApiResponse<List<NcShopInfo>> localVarResponse = BasicDataGetNcShopInfoWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcShopInfo&gt;</returns>
public ApiResponse< List<NcShopInfo> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcShopInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcShopInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcShopInfo>)));
}
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcShopInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<NcShopInfo>> BasicDataGetNcShopInfoAsync (string code, string authorization)
{
ApiResponse<List<NcShopInfo>> localVarResponse = await BasicDataGetNcShopInfoAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到模糊搜索的店铺列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">店铺编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcShopInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcShopInfo>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcShopInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcShopInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcShopInfo>)));
}
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcShopListResp&gt;</returns>
public List<NcShopListResp> BasicDataGetNcShopList (ShopSearchRequest request, string authorization)
{
ApiResponse<List<NcShopListResp>> localVarResponse = BasicDataGetNcShopListWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcShopListResp&gt;</returns>
public ApiResponse< List<NcShopListResp> > 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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<List<NcShopListResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcShopListResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcShopListResp>)));
}
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcShopListResp&gt;</returns>
public async System.Threading.Tasks.Task<List<NcShopListResp>> BasicDataGetNcShopListAsync (ShopSearchRequest request, string authorization)
{
ApiResponse<List<NcShopListResp>> localVarResponse = await BasicDataGetNcShopListAsyncWithHttpInfo(request, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 按修改时间段返回店铺
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="request"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcShopListResp&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcShopListResp>>> 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<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetNcShopList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcShopListResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcShopListResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcShopListResp>)));
}
/// <summary>
/// SKU分页列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>PageResultNcGoodsListInfo</returns>
public PageResultNcGoodsListInfo BasicDataGetNcSkuPageList (PagedSearchGoodsSearchRequest search, string authorization)
{
ApiResponse<PageResultNcGoodsListInfo> localVarResponse = BasicDataGetNcSkuPageListWithHttpInfo(search, authorization);
return localVarResponse.Data;
}
/// <summary>
/// SKU分页列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of PageResultNcGoodsListInfo</returns>
public ApiResponse< PageResultNcGoodsListInfo > BasicDataGetNcSkuPageListWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization)
{
// verify the required parameter 'search' is set
if (search == null)
throw new ApiException(400, "Missing required parameter 'search' when calling BasicDataApi->BasicDataGetNcSkuPageList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcSkuPageList");
var localVarPath = "/api/Admin/BasicData/GetNcSkuPageList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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 (search != null && search.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(search); // http body (model) parameter
}
else
{
localVarPostBody = search; // 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("BasicDataGetNcSkuPageList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<PageResultNcGoodsListInfo>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(PageResultNcGoodsListInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PageResultNcGoodsListInfo)));
}
/// <summary>
/// SKU分页列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of PageResultNcGoodsListInfo</returns>
public async System.Threading.Tasks.Task<PageResultNcGoodsListInfo> BasicDataGetNcSkuPageListAsync (PagedSearchGoodsSearchRequest search, string authorization)
{
ApiResponse<PageResultNcGoodsListInfo> localVarResponse = await BasicDataGetNcSkuPageListAsyncWithHttpInfo(search, authorization);
return localVarResponse.Data;
}
/// <summary>
/// SKU分页列表
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="search"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (PageResultNcGoodsListInfo)</returns>
public async System.Threading.Tasks.Task<ApiResponse<PageResultNcGoodsListInfo>> BasicDataGetNcSkuPageListAsyncWithHttpInfo (PagedSearchGoodsSearchRequest search, string authorization)
{
// verify the required parameter 'search' is set
if (search == null)
throw new ApiException(400, "Missing required parameter 'search' when calling BasicDataApi->BasicDataGetNcSkuPageList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNcSkuPageList");
var localVarPath = "/api/Admin/BasicData/GetNcSkuPageList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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 (search != null && search.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(search); // http body (model) parameter
}
else
{
localVarPostBody = search; // 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("BasicDataGetNcSkuPageList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<PageResultNcGoodsListInfo>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(PageResultNcGoodsListInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PageResultNcGoodsListInfo)));
}
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>string</returns>
public string BasicDataGetNewShopCode (string code, string authorization)
{
ApiResponse<string> localVarResponse = BasicDataGetNewShopCodeWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of string</returns>
public ApiResponse< string > BasicDataGetNewShopCodeWithHttpInfo (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->BasicDataGetNewShopCode");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNewShopCode");
var localVarPath = "/api/Admin/BasicData/GetNewShopCode";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetNewShopCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<string>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
}
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of string</returns>
public async System.Threading.Tasks.Task<string> BasicDataGetNewShopCodeAsync (string code, string authorization)
{
ApiResponse<string> localVarResponse = await BasicDataGetNewShopCodeAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据编码,不管新旧,得到新的店铺编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code"></param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (string)</returns>
public async System.Threading.Tasks.Task<ApiResponse<string>> BasicDataGetNewShopCodeAsyncWithHttpInfo (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->BasicDataGetNewShopCode");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetNewShopCode");
var localVarPath = "/api/Admin/BasicData/GetNewShopCode";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetNewShopCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<string>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
}
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>string</returns>
public string BasicDataGetRootClassCode (string code, string authorization)
{
ApiResponse<string> localVarResponse = BasicDataGetRootClassCodeWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of string</returns>
public ApiResponse< string > BasicDataGetRootClassCodeWithHttpInfo (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->BasicDataGetRootClassCode");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetRootClassCode");
var localVarPath = "/api/Admin/BasicData/GetRootClassCode";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetRootClassCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<string>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
}
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of string</returns>
public async System.Threading.Tasks.Task<string> BasicDataGetRootClassCodeAsync (string code, string authorization)
{
ApiResponse<string> localVarResponse = await BasicDataGetRootClassCodeAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据分类编码得到根节点编码
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">分类编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (string)</returns>
public async System.Threading.Tasks.Task<ApiResponse<string>> BasicDataGetRootClassCodeAsyncWithHttpInfo (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->BasicDataGetRootClassCode");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetRootClassCode");
var localVarPath = "/api/Admin/BasicData/GetRootClassCode";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetRootClassCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<string>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string)));
}
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSkuListInfo&gt;</returns>
public List<NcSkuListInfo> BasicDataGetSkuByCodes (List<string> codes, string authorization)
{
ApiResponse<List<NcSkuListInfo>> localVarResponse = BasicDataGetSkuByCodesWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSkuListInfo&gt;</returns>
public ApiResponse< List<NcSkuListInfo> > BasicDataGetSkuByCodesWithHttpInfo (List<string> codes, string authorization)
{
// verify the required parameter 'codes' is set
if (codes == null)
throw new ApiException(400, "Missing required parameter 'codes' when calling BasicDataApi->BasicDataGetSkuByCodes");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetSkuByCodes");
var localVarPath = "/api/Admin/BasicData/GetSkuByCodes";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetSkuByCodes", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSkuListInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSkuListInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSkuListInfo>)));
}
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSkuListInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<NcSkuListInfo>> BasicDataGetSkuByCodesAsync (List<string> codes, string authorization)
{
ApiResponse<List<NcSkuListInfo>> localVarResponse = await BasicDataGetSkuByCodesAsyncWithHttpInfo(codes, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 根据SKU编码得到一组SKU数据
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="codes">一组编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSkuListInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcSkuListInfo>>> BasicDataGetSkuByCodesAsyncWithHttpInfo (List<string> codes, string authorization)
{
// verify the required parameter 'codes' is set
if (codes == null)
throw new ApiException(400, "Missing required parameter 'codes' when calling BasicDataApi->BasicDataGetSkuByCodes");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetSkuByCodes");
var localVarPath = "/api/Admin/BasicData/GetSkuByCodes";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetSkuByCodes", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSkuListInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSkuListInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSkuListInfo>)));
}
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcGoodsDetailInfo&gt;</returns>
public List<NcGoodsDetailInfo> BasicDataGetTopGoods (string kh, string authorization)
{
ApiResponse<List<NcGoodsDetailInfo>> localVarResponse = BasicDataGetTopGoodsWithHttpInfo(kh, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcGoodsDetailInfo&gt;</returns>
public ApiResponse< List<NcGoodsDetailInfo> > BasicDataGetTopGoodsWithHttpInfo (string kh, string authorization)
{
// verify the required parameter 'kh' is set
if (kh == null)
throw new ApiException(400, "Missing required parameter 'kh' when calling BasicDataApi->BasicDataGetTopGoods");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopGoods");
var localVarPath = "/api/Admin/BasicData/GetTopGoods";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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 (kh != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "kh", kh)); // 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("BasicDataGetTopGoods", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcGoodsDetailInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcGoodsDetailInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcGoodsDetailInfo>)));
}
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcGoodsDetailInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<NcGoodsDetailInfo>> BasicDataGetTopGoodsAsync (string kh, string authorization)
{
ApiResponse<List<NcGoodsDetailInfo>> localVarResponse = await BasicDataGetTopGoodsAsyncWithHttpInfo(kh, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前N条商品按款号搜索
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="kh">款号</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcGoodsDetailInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcGoodsDetailInfo>>> BasicDataGetTopGoodsAsyncWithHttpInfo (string kh, string authorization)
{
// verify the required parameter 'kh' is set
if (kh == null)
throw new ApiException(400, "Missing required parameter 'kh' when calling BasicDataApi->BasicDataGetTopGoods");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopGoods");
var localVarPath = "/api/Admin/BasicData/GetTopGoods";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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 (kh != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "kh", kh)); // 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("BasicDataGetTopGoods", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcGoodsDetailInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcGoodsDetailInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcGoodsDetailInfo>)));
}
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSuiteGoodsResp&gt;</returns>
public List<NcSuiteGoodsResp> BasicDataGetTopNcSuiteGoodsList (string code, string authorization)
{
ApiResponse<List<NcSuiteGoodsResp>> localVarResponse = BasicDataGetTopNcSuiteGoodsListWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSuiteGoodsResp&gt;</returns>
public ApiResponse< List<NcSuiteGoodsResp> > BasicDataGetTopNcSuiteGoodsListWithHttpInfo (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->BasicDataGetTopNcSuiteGoodsList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopNcSuiteGoodsList");
var localVarPath = "/api/Admin/BasicData/GetTopNcSuiteGoodsList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopNcSuiteGoodsList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSuiteGoodsResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSuiteGoodsResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSuiteGoodsResp>)));
}
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSuiteGoodsResp&gt;</returns>
public async System.Threading.Tasks.Task<List<NcSuiteGoodsResp>> BasicDataGetTopNcSuiteGoodsListAsync (string code, string authorization)
{
ApiResponse<List<NcSuiteGoodsResp>> localVarResponse = await BasicDataGetTopNcSuiteGoodsListAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前10条套装商品
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSuiteGoodsResp&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcSuiteGoodsResp>>> BasicDataGetTopNcSuiteGoodsListAsyncWithHttpInfo (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->BasicDataGetTopNcSuiteGoodsList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopNcSuiteGoodsList");
var localVarPath = "/api/Admin/BasicData/GetTopNcSuiteGoodsList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopNcSuiteGoodsList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSuiteGoodsResp>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSuiteGoodsResp>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSuiteGoodsResp>)));
}
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NcSkuDetailInfo&gt;</returns>
public List<NcSkuDetailInfo> BasicDataGetTopSku (string code, string authorization)
{
ApiResponse<List<NcSkuDetailInfo>> localVarResponse = BasicDataGetTopSkuWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NcSkuDetailInfo&gt;</returns>
public ApiResponse< List<NcSkuDetailInfo> > BasicDataGetTopSkuWithHttpInfo (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->BasicDataGetTopSku");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopSku");
var localVarPath = "/api/Admin/BasicData/GetTopSku";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopSku", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSkuDetailInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSkuDetailInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSkuDetailInfo>)));
}
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NcSkuDetailInfo&gt;</returns>
public async System.Threading.Tasks.Task<List<NcSkuDetailInfo>> BasicDataGetTopSkuAsync (string code, string authorization)
{
ApiResponse<List<NcSkuDetailInfo>> localVarResponse = await BasicDataGetTopSkuAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前N条SKU
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NcSkuDetailInfo&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NcSkuDetailInfo>>> BasicDataGetTopSkuAsyncWithHttpInfo (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->BasicDataGetTopSku");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopSku");
var localVarPath = "/api/Admin/BasicData/GetTopSku";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopSku", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NcSkuDetailInfo>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NcSkuDetailInfo>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NcSkuDetailInfo>)));
}
/// <summary>
/// 得到前10的主题
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>List&lt;NameCode&gt;</returns>
public List<NameCode> BasicDataGetTopTopicList (string code, string authorization)
{
ApiResponse<List<NameCode>> localVarResponse = BasicDataGetTopTopicListWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前10的主题
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>ApiResponse of List&lt;NameCode&gt;</returns>
public ApiResponse< List<NameCode> > BasicDataGetTopTopicListWithHttpInfo (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->BasicDataGetTopTopicList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopTopicList");
var localVarPath = "/api/Admin/BasicData/GetTopTopicList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopTopicList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NameCode>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NameCode>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NameCode>)));
}
/// <summary>
/// 得到前10的主题
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of List&lt;NameCode&gt;</returns>
public async System.Threading.Tasks.Task<List<NameCode>> BasicDataGetTopTopicListAsync (string code, string authorization)
{
ApiResponse<List<NameCode>> localVarResponse = await BasicDataGetTopTopicListAsyncWithHttpInfo(code, authorization);
return localVarResponse.Data;
}
/// <summary>
/// 得到前10的主题
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="code">主题编码</param>
/// <param name="authorization">访问令牌</param>
/// <returns>Task of ApiResponse (List&lt;NameCode&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<NameCode>>> BasicDataGetTopTopicListAsyncWithHttpInfo (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->BasicDataGetTopTopicList");
// verify the required parameter 'authorization' is set
if (authorization == null)
throw new ApiException(400, "Missing required parameter 'authorization' when calling BasicDataApi->BasicDataGetTopTopicList");
var localVarPath = "/api/Admin/BasicData/GetTopTopicList";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
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("BasicDataGetTopTopicList", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<NameCode>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(List<NameCode>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<NameCode>)));
}
}
}