更新框架,增加云库搜索模块
This commit is contained in:
1 parent
8526e5e0d2
commit
f2caec6083
192 files changed
+3626
-804
No files matched your search
@@ -0,0 +1,257 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using StoreHub.KJDWebService.Services;
|
||||
|
||||
namespace StoreHub.KJDWebService.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersionNeutral]
|
||||
[Route("shop/[action]")]
|
||||
public class ShopController : BaseApiController
|
||||
{
|
||||
private readonly ShopService _shopService;
|
||||
|
||||
public ShopController(ShopService shopService)
|
||||
{
|
||||
_shopService = shopService;
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_shop_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.GetShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_one_login_name_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.GetOneLoginNameShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.AddShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.DelShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.MdyShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_shop_cookie_and_login_status()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.MdyCookieAndLoginStatus(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_shop_ads_cookie_and_login_status()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.MdyAdsCookieAndLoginStatus(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_get_shop_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.GetShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult sub_sa_get_select_prod_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.SubSaGetSelectProdShop(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult update_add_prod_remaining()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.UpdateAddProdRemaining(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_mdy_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.MdyShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_add_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.AddShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult admin_del_shop()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.DelShop(jsontext, true);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult set_shop_sub_sa()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.SetShopSubSa(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_shop_card_code_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.GetShopCardCodeList(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult create_shop_card_code()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.CreateShopCardCode(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_shop_card_code()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.DelShopCardCode(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult active_jit_card_code()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _shopService.ActiveJitCardCode(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user