Files
KJD_WebService/KJD_WebService/Controllers/BXX/BXXProductController.cs
T
chfei 0e38a1e31f 增加外部调用Apikey.
可以外部调用API 图片库扣费
bxx 商品库 增加API
2026-11-06 19:24:34 +08:00

461 lines
10 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.BXX
{
[RoutePrefix("bxx_product")]
[Route("{action}")]
public class BXXProductController : AsmxApiController
{
public IHttpActionResult get_product_spu_id_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductSpuIdLst(jsontext);
return JsonString(result);
}
//AddProdDownSku
public IHttpActionResult add_prod_down_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProdDownSku(jsontext);
return JsonString(result);
}
public IHttpActionResult get_prod_down_sku_lst_by_sku_codes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProdDownSkuLstBySkuCodes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_product_list_random()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductListRandom(jsontext);
return JsonString(result);
}
public IHttpActionResult add_prod_wx_complate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProdWXComplate(jsontext);
return JsonString(result);
}
public IHttpActionResult get_prod_wx_complate_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProdWXComplateList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_replace_img_list_random()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuReplaceImgListRandom(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_violation_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyViolationProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_best_sale_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyBestSaleProd(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelDbProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyDBProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductGroups(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProductGroup(jsontext);
return JsonString(result);
}
public IHttpActionResult del_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelProductGroup(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult del_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_cates()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductMainCates(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_cates()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductCates(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sku_img_replace()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddSkuImgReplace(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_sku_img_replace()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdySkuImgReplace(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_img_replace_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuImgReplaceList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_img_replace_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuImgReplaceList(jsontext, true);
return JsonString(result);
}
//AddSkuImg
public IHttpActionResult add_sku_img()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddSkuImg(jsontext);
return JsonString(result);
}
public IHttpActionResult get_wx_tokens()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().E57GetWxTokens(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_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);
}
//AddJSTSku
public IHttpActionResult add_jst_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddJSTSku(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_jst_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyJSTSku(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_sku_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJSTSkuList(jsontext);
return JsonString(result);
}
public IHttpActionResult set_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().SetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
public IHttpActionResult get_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
/// <summary>
/// 拼多多关联新增
/// </summary>
public IHttpActionResult add_relation()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddRelation(jsontext);
return JsonString(result);
}
/// <summary>
/// 拼多多关联获取
/// </summary>
public IHttpActionResult get_relation()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetRelation(jsontext);
return JsonString(result);
}
public IHttpActionResult add_mdy_jst_product_ban()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddMdyJstProductBan(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_product_coid_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJstProductCoidList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_product_ban_platform_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJstProductBanPlatformList(jsontext);
return JsonString(result);
}
public IHttpActionResult SaveProductSafety()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().SaveProductSafety(jsontext);
return JsonString(result);
}
}
}