增加老版本 KJDWebService
This commit is contained in:
1 parent
58abbb5b4f
commit
f84c4c1949
115 files changed
+36598
-18
No files matched your search
@@ -0,0 +1,337 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using StoreHub.KJDWebService.Services;
|
||||
|
||||
namespace StoreHub.KJDWebService.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersionNeutral]
|
||||
[Route("bxx_shop/[action]")]
|
||||
public class BXXShopController : BaseApiController
|
||||
{
|
||||
private readonly BXXShopService _bXXShopService;
|
||||
private readonly WXShopService _wXShopService;
|
||||
|
||||
public BXXShopController(BXXShopService bXXShopService, WXShopService wXShopService)
|
||||
{
|
||||
_bXXShopService = bXXShopService;
|
||||
_wXShopService = wXShopService;
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_pdd_client_info()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetPddClientInfo(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_shop_client_info()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetShopClientInfo(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_mdy_shop_client_info()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.AddMdyShopClientInfo(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_shop_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_one_login_name_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetOneLoginNameShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.AddShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.DelShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_anti_content()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyAntiContent(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_shop_cookie_and_login_status()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyCookieAndLoginStatus(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_get_shop_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult sub_sa_get_select_prod_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.SubSaGetSelectProdShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult update_add_prod_remaining()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.UpdateAddProdRemaining(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_mdy_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_add_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.AddShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_del_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.DelShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult set_shop_sub_sa()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.SetShopSubSa(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult e57_get_wx_tokens()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _wXShopService.E57GetWxTokens(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult e57_get_pdd_shop_token()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.E57GetPddShopToken(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_weidian_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.AddWeiDianShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_weidian_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyWeiDianShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_weidian_shop_cookie()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.MdyWeiDianShopCookie(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_weidian_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.GetWeiDianShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_weidian_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXShopService.DelWeiDianShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user