3395 lines
174 KiB
C#
3395 lines
174 KiB
C#
/*
|
||
* 后台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<NcDealerNameCodeResp></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<NcDealerNameCodeResp></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<NcNewAndOldCode></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<NcNewAndOldCode></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<GoodsStock></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<GoodsStock></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<NcAllGoodsInfoListResp></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<NcAllGoodsInfoListResp></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<NcDealerInfo></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<NcDealerInfo></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<OurGoodsCategoryInfo></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<OurGoodsCategoryInfo></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<NcShopInfo></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<NcShopInfo></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<NcShopListResp></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<NcShopListResp></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<NcSkuListInfo></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<NcSkuListInfo></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<NcGoodsDetailInfo></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<NcGoodsDetailInfo></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<NcSuiteGoodsResp></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<NcSuiteGoodsResp></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<NcSkuDetailInfo></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<NcSkuDetailInfo></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<NameCode></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<NameCode></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<NcDealerNameCodeResp></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<NcDealerNameCodeResp>)</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<NcNewAndOldCode></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<NcNewAndOldCode>)</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<GoodsStock></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<GoodsStock>)</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<NcAllGoodsInfoListResp></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<NcAllGoodsInfoListResp>)</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<NcDealerInfo></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<NcDealerInfo>)</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<OurGoodsCategoryInfo></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<OurGoodsCategoryInfo>)</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<NcShopInfo></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<NcShopInfo>)</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<NcShopListResp></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<NcShopListResp>)</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<NcSkuListInfo></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<NcSkuListInfo>)</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<NcGoodsDetailInfo></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<NcGoodsDetailInfo>)</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<NcSuiteGoodsResp></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<NcSuiteGoodsResp>)</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<NcSkuDetailInfo></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<NcSkuDetailInfo>)</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<NameCode></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<NameCode>)</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<NcDealerNameCodeResp></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<NcDealerNameCodeResp></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<NcDealerNameCodeResp></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<NcDealerNameCodeResp>)</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<NcNewAndOldCode></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<NcNewAndOldCode></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<NcNewAndOldCode></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<NcNewAndOldCode>)</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<GoodsStock></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<GoodsStock></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<GoodsStock></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<GoodsStock>)</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<NcAllGoodsInfoListResp></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<NcAllGoodsInfoListResp></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<NcAllGoodsInfoListResp></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<NcAllGoodsInfoListResp>)</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<NcDealerInfo></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<NcDealerInfo></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<NcDealerInfo></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<NcDealerInfo>)</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<OurGoodsCategoryInfo></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<OurGoodsCategoryInfo></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<OurGoodsCategoryInfo></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<OurGoodsCategoryInfo>)</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<NcShopInfo></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<NcShopInfo></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<NcShopInfo></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<NcShopInfo>)</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<NcShopListResp></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<NcShopListResp></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<NcShopListResp></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<NcShopListResp>)</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<NcSkuListInfo></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<NcSkuListInfo></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<NcSkuListInfo></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<NcSkuListInfo>)</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<NcGoodsDetailInfo></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<NcGoodsDetailInfo></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<NcGoodsDetailInfo></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<NcGoodsDetailInfo>)</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<NcSuiteGoodsResp></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<NcSuiteGoodsResp></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<NcSuiteGoodsResp></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<NcSuiteGoodsResp>)</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<NcSkuDetailInfo></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<NcSkuDetailInfo></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<NcSkuDetailInfo></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<NcSkuDetailInfo>)</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<NameCode></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<NameCode></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<NameCode></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<NameCode>)</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>)));
|
||
}
|
||
|
||
}
|
||
}
|