37 lines
874 B
C#
37 lines
874 B
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using StoreHub.KJDWebService.Services;
|
|
|
|
namespace StoreHub.KJDWebService.Controllers
|
|
{
|
|
[ApiController]
|
|
[ApiVersionNeutral]
|
|
[Route("wxxd_shop_revenue_statistics/[action]")]
|
|
public class WXShopRevenueStatisticsController : BaseApiController
|
|
{
|
|
private readonly WXShopRevenueStatisticsService _wXShopRevenueStatisticsService;
|
|
|
|
public WXShopRevenueStatisticsController(WXShopRevenueStatisticsService wXShopRevenueStatisticsService)
|
|
{
|
|
_wXShopRevenueStatisticsService = wXShopRevenueStatisticsService;
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult get_shop_order_amount()
|
|
{
|
|
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = _wXShopRevenueStatisticsService.GetShopOrderAmountRange(jsontext);
|
|
|
|
return WriteJson(result);
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|