52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using MyCode.Project.Domain.Message.Act.ShopData;
|
|
using MyCode.Project.Domain.Message.Request.ShopData;
|
|
using MyCode.Project.Domain.Message.Response.ShopData;
|
|
using MyCode.Project.Services.IServices;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 店铺数据录入相关接口
|
|
/// </summary>
|
|
public class ShopDataController : BaseWechatController
|
|
{
|
|
|
|
#region 初始化
|
|
private readonly IShopDataService _shopDataService;
|
|
public ShopDataController(IShopDataService shopDataService)
|
|
{
|
|
_shopDataService = shopDataService;
|
|
}
|
|
#endregion
|
|
|
|
#region SaveShopDataIndicators 保存店铺数据录入
|
|
/// <summary>
|
|
/// 保存店铺数据录入
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SaveShopDataIndicators(SaveShopDataIndicatorsAct act)
|
|
{
|
|
_shopDataService.SaveShopDataIndicators(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopDataIndicatorsDetails 获取店铺数据录入数据详情
|
|
/// <summary>
|
|
/// 获取店铺数据录入数据详情
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopDataIndicatorsDetailsResp GetShopDataIndicatorsDetails(ShopDataIndicatorsDetailsReq req)
|
|
{
|
|
return _shopDataService.GetShopDataIndicatorsDetails(req);
|
|
}
|
|
#endregion
|
|
}
|
|
} |