增加老版本 KJDWebService
This commit is contained in:
1 parent
58abbb5b4f
commit
f84c4c1949
115 files changed
+36598
-18
No files matched your search
@@ -0,0 +1,179 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using StoreHub.KJDWebService.Services;
|
||||
|
||||
namespace StoreHub.KJDWebService.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersionNeutral]
|
||||
[Route("bxx_price/[action]")]
|
||||
public class BXXPriceController : BaseApiController
|
||||
{
|
||||
private readonly BXXPriceService _bXXPriceService;
|
||||
|
||||
public BXXPriceController(BXXPriceService bXXPriceService)
|
||||
{
|
||||
_bXXPriceService = bXXPriceService;
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_price_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.GetPriceList(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.AddPrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_db_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.DelDbPrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_db_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.MdyDBPrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_purchase_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.MdyPurchasePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_purchase_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.AddPurchasePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_purchase_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.DelPurchasePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_purchase_price_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.GetPurchasePriceList(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult add_ext_code_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.AddExtCodePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_ext_code_price_list()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.GetExtCodePriceList(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult del_db_ext_code_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.DelDbExtCodePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult mdy_db_ext_code_price()
|
||||
{
|
||||
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _bXXPriceService.MdyDBExtCodePrice(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user