增加老版本 KJDWebService
This commit is contained in:
1 parent
58abbb5b4f
commit
f84c4c1949
115 files changed
+36598
-18
No files matched your search
@@ -0,0 +1,70 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using StoreHub.KJDWebService.Services;
|
||||
|
||||
namespace StoreHub.KJDWebService.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersionNeutral]
|
||||
[Route("update/[action]")]
|
||||
public class UpdateController : BaseApiController
|
||||
{
|
||||
private readonly UpdateService _updateService;
|
||||
|
||||
public UpdateController(UpdateService updateService)
|
||||
{
|
||||
_updateService = updateService;
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult hello_world()
|
||||
{
|
||||
|
||||
return Content("Hello World");
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_update()
|
||||
{
|
||||
|
||||
var jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _updateService.GetUpdate(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_update_new()
|
||||
{
|
||||
|
||||
var jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _updateService.GetUpdateNew(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET", "POST")]
|
||||
public IActionResult get_wx_finder_order_update()
|
||||
{
|
||||
|
||||
var jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = _updateService.GetWxFindOrderUpdate(jsontext);
|
||||
|
||||
return WriteJson(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user