445 lines
12 KiB
C#
445 lines
12 KiB
C#
using KJD_Web.BLL.BXX;
|
|
using KJD_Web.BLL.WXXD;
|
|
using KJD_Web.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Services;
|
|
using System.Web.Http;
|
|
|
|
namespace KJD_Web.Controllers.WX
|
|
{
|
|
[RoutePrefix("wxxd_product")]
|
|
[Route("{action}")]
|
|
public class WXProductController : AsmxApiController
|
|
{
|
|
public IHttpActionResult get_pdd_product_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetPDDProductList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_pdd_product_detail_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetPDDProductList(jsontext, true);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_hot_product_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetHotProductList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_hot_product_detail_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetHotProductList(jsontext, true);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_product_latest_buy_amount_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetProductLatestBuyAmountList(jsontext, true);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_pdd_product_list_random()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetPDDProductListRandom(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_pdd_prod_wx_complate_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().GetProdWXComplateList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_pdd_product_groups()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetPDDProductGroups(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_pdd_product_cates()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetPDDProductCates(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_pdd_product()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXMdyPDDProduct(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_best_sale_prod()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().MdyBestSaleProd(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult set_random_company_product_config()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().SetRandomCompanyProductConfig(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_random_company_product_config()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().GetRandomCompanyProductConfig(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_secret_spu_id_shop_id_map()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddSecretSpuIdShopIdMap(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
//WXAddSecretIdUpMap
|
|
public IHttpActionResult wx_add_secret_id_up_map()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddSecretIdUpMap(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据聚水潭加密商品编号(货号)查询所有上传过的店铺id 260224 未测试
|
|
/// </summary>
|
|
public IHttpActionResult get_secret_spu_id_shop_id_map_List()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetSecretSpuIdShopIdMapList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_add_mdy_after_sale()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddMdyAfterSale(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_after_sale()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetAfterSale(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_random_after_sale_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetRandomAfterSaleList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_after_sale_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetAfterSaleList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_del_address()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXDelAddress(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
//WXAddMdyAfterSale
|
|
public IHttpActionResult wx_add_mdy_shipping_template()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddMdyShippingTemplate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_shipping_template()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetShippingTemplate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_add_mdy_commission_rate()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddMdyCommissionRate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_commission_rate()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetCommissionRate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_add_mdy_qualification_image()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXAddMdyQualificationImage(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_get_qualification_image()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXGetQualificationImage(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_del_qualification_image()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().WXDelQualificationImage(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult e57_get_freight_template()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().E57GetFreightTemplate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult e57_after_sale()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new WXProductManage().E57AfterSale(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_api_get_all_cate()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().WxApiGetWxAllCate(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult Wx_api_get_wx_cate_bound()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().WxApiGetWxCateBound(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 搜索代发供应商
|
|
/// </summary>
|
|
public IHttpActionResult wx_api_get_supplier_list()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiGetSupplierList(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_api_invite_supplier()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiInviteSupplier(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 搜索代发
|
|
/// </summary>
|
|
public IHttpActionResult wx_api_dropship_search()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiDropshipSearch(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
/// <summary>
|
|
/// 查询代发详情
|
|
/// </summary>
|
|
public IHttpActionResult wx_api_dropship_search_detail()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiDropshipSearchDetail(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 添加代发
|
|
/// </summary>
|
|
public IHttpActionResult wx_api_dropship_assign()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiDropshipAssign(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 添加代发
|
|
/// </summary>
|
|
public IHttpActionResult wx_api_dropship_cancel()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiDropshipCancel(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_api_get_audit_quota()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
var result = new BXXProductManage().WxApiGetAuditQuota(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_api_category_classify()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().WxApiCategoryClassify(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult wx_api_upload_image()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().WxApiUploadImage(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult is_get_wx_recommend_hot_prod()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXProductManage().IsGetWXRecommendHotProd(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
}
|
|
}
|